[jQuery] Re: How can I make searching not case-sensitive?

2008-02-21 Thread dinu

This is nice, but my problem is with the divs in the list. They
contain both lower case and upper case, but must be searched as they
were exclusively lower case. Is there a way to do something like this:

$(div.nume.toLowerCase:contains( + xx
+)).parent().addClass(zero); ??

Thanks,
Dinu

On Feb 21, 9:25 am, andrea varnier [EMAIL PROTECTED] wrote:
 On Feb 20, 8:55 pm, dinu [EMAIL PROTECTED] wrote:

   xx=$(form#form1 *).fieldValue()[0];

 hi :)
 have you tried this?
 xx=$(form#form1 *).fieldValue()[0].toLowerCase;


[jQuery] Re: How can I make searching not case-sensitive?

2008-02-20 Thread dinu

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