Would it be a crazy idea to duplicate the div's needed for search but
in lowercase and hidden and to perform the search in those duplicates?

Dinu

On Feb 20, 9:55 pm, dinu <[EMAIL PROTECTED]> wrote:
> 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

Reply via email to