sesackett Posted October 26, 2005 Share Posted October 26, 2005 Is it possible to use an attribute selector find values stored in the style attribute of an element? What I want to do is locate every input element that has the background color of lime, but I can't fingure out the syntax. See example for a pseudo code representation of what I want to do.Example:input[style=background-color:lime]{} /*This doesn't work*/input[style.background-color=lime]{} /*This doesn't work*/Thanks for your helpSteve Link to comment Share on other sites More sharing options...
actionsketch Posted October 27, 2005 Share Posted October 27, 2005 javascript would store it as style.backgroundcolor I believe Link to comment Share on other sites More sharing options...
sesackett Posted October 27, 2005 Author Share Posted October 27, 2005 javascript would store it as style.backgroundcolor I believe<{POST_SNAPBACK}> Thanks, this makes sense. Also I now know enough to stay away from MSIE when working through CSS tutorials.Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now