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, 07:46 PM #1
- Join Date
- Jan 2006
- Halle (Saale), Germany
- Thanked 1,053 Times in 1,026 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 06:28 PM.