[jQuery] How can I make searching not case-sensitive?
Hi, everybody!
My problem is that I need to filter a list by hiding the rows that
don't contain the string entered in a form.
What I did till now is:
$("#submitButton1").click(function(){
xx=$("form#form1 *").fieldValue()[0];
$("div.nume:contains(" + xx +")").parent().addClass("zero");
$("div.info:contains(" + xx +")").parent().addClass("zero");
$("div.rowcont").toggleClass("zero");
$("div.zero").hide();
});
It works, but it's case sensitive. How can I make it not to be? Any
ideas...?
Thanks,
Dinu