[jQuery] Re: Trouble constructing selector string.

2009-06-14 Thread Ricardo
Doesn't make any sense! Are you sure the strings are equal? Can you put a working sample of this issue online (jsbin.com)? There's something missing. On Jun 12, 10:09 am, rinse_my_phonebook hugo.lee...@gmail.com wrote: Hi there, I'm having a bad time trying to work out what is wrong with my

[jQuery] Re: Trouble constructing selector string.

2009-06-14 Thread Karl Swedberg
Maybe $(this).attr('class') != 'Value' ? Sorry, what I meant was that maybe $(this).attr('class') does not equal Value. And that I wouldn't use $(this).attr('class') ... --Karl On Jun 13, 2009, at 8:53 PM, Karl Swedberg wrote: Maybe $(this).attr('class') != 'Value' ? I wouldn't

[jQuery] Re: Trouble constructing selector string.

2009-06-13 Thread Karl Swedberg
Maybe $(this).attr('class') != 'Value' ? I wouldn't bother using $(this).attr('class') anyway. Instead, try this.className And make sure that the class is, in fact, Value. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2009, at 9:22 AM,