I’m doing some jQuery magic and I need to tag a <li> to do something special. I can’t use class or id due to certain other constraints. What other attributes can I put in there so jQuery can find the element?
I’m doing some jQuery magic and I need to tag a <li> to do
Share
Title is a valid attribute that you might be able to use.
If HTML5 is an option, you might want to try data attributes: http://ejohn.org/blog/html-5-data-attributes/