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,023 Times in 996 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.