[jQuery] Re: Select empty textbox fields

2009-02-04 Thread brnwdrng
It's something in jQuery 1.3 ... the code works in Chrome and Safari when I use jQuery 1.2.x. On Feb 4, 10:59 am, brnwdrng wrote: > Interesting postnote: > > The solutions given seem to work for the latest versions of Firefox, > IE, and Opera; but fail in Chrome and Safari.  T

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread brnwdrng
Interesting postnote: The solutions given seem to work for the latest versions of Firefox, IE, and Opera; but fail in Chrome and Safari. They don't seem to be able to distinguish the empty text boxes from populated ones. On Feb 4, 8:53 am, brnwdrng wrote: > I got the second sugge

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread brnwdrng
(i) { $(this).toggleClass ('inputFields_empty', $.trim($(this).val()).length < 1); }); Thanks for the help! On Feb 4, 7:22 am, Aaron Gundel wrote: >  $("#<%= this.pnlInputFields.ClientID %> > input[class='inputFields']:not([value])).toggleClass('in

[jQuery] Select empty textbox fields

2009-02-03 Thread brnwdrng
I have a set of text box inputs in a div, and want to color the empty ones red (css) when a user attempts to submit incomplete fields. I've tried this with and without an explicit iterator, as shown in the two examples below. (a) $("#<%= this.pnlInputFields.ClientID %> input[class='inputFields']