I have this sentence in JQuery to filter data type JSON
var datos = $(Data).filter(function (index, value) {
return value.Apellido == Apellido;
});
Where Data is my concentrated data, I want to filter those with a last name X, it does it correctly, but only if the last name I give is strictly the same as it is in the table, that is, it is not the same "Hernández to "Hernandez". Is there a way to do a LIKE type like in SQL?
You can complicate it as much as you want.
For example:
It would come to be what a
LIKE '%XXXX%'
in SQL, without distinguishing between upper and lower case. Another option is to use regular expressions, but the first thing you have to be clear about is what rules you want to apply to the search.