<table>
<tr><td test="1">aa</td><td test="2">bb</td><td test="3">cc</td></tr>
</table>
Is possible set css, for example background-color:red for attribute test=’2′?
I would like use attribute, not add new class or id.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
Bear in mind though that making up your own attributes will result in invalid HTML.
You could instead use the HTML5
data-xto set custom attributes, and filter on that:HTML
jQuery
Example fiddle