Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: jQuery CSS attribute selectors
01-28-2009, 06:46 PM #1
- Join Date
- Jan 2006
- Halle (Saale), Germany
- Thanked 1,191 Times in 1,162 Posts
jQuery CSS attribute selectors
I want to get elements with the attribute/value combination of
style="float: left;"and add a class to them. Is this even possible? Because all Iíve tried so far hasnít led to any result.
Iíve looked at http://docs.jquery.com/Selectors and to me it seems that actually
[attribute*=value]should do the trick (http://docs.jquery.com/Selectors/att...attributevalue) but somehow it doesnít. Is the ďstyleĒ attribute a special case or what?
My code is simple:
Last edited by VIPStephan; 01-29-2009 at 05:28 PM.