[jQuery] Re: Select empty textbox fields

2009-02-04 Thread Aaron Gundel
You may wish to file a bug report on this. The selector engine did change in 1.3 On Wed, Feb 4, 2009 at 11:04 AM, brnwdrng wrote: > > 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:

[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.  They don't seem to b

[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 suggestion to work

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread brnwdrng
I got the second suggestion to work (Aaron's); though there was a minor typo that had to be fixed - the ending double quote before ).toggleClass I fixed my secondary problem by removing the class from all the fields prior to applying the shade effect on each user submit. So, it ends up looking l

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread Aaron Gundel
$("#<%= this.pnlInputFields.ClientID %> input[class='inputFields']:not([value])).toggleClass('inputFields_empty'); should do the trick. On Tue, Feb 3, 2009 at 2:57 PM, brnwdrng wrote: > > I have a set of text box inputs in a div, and want to color the empty > ones red (css) when a user attempts

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread jQuery Lover
Try this: $("#<%= this.pnlInputFields.ClientID %> input.inputFields:empty").addClass('inputFields_empty'); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Feb 4, 2009 at 3:57 AM, brnwdrng wrote: > > I have a set of text box inputs in a div, and want to color the

[jQuery] Re: Select empty textbox fields

2009-02-04 Thread Adrian Lynch
I was putting together an simple example to ask another question when I came across the same problem. Here's a basic example to highlight what's happening: $(function() { alert($("input[value='']").attr("id")); }); I was lookin