Where to store the data for jquery?
<p>Hello<br>
I made a gallery and a custom css dropdown to choose a category.If the user does not have javascript he should click the a anchor and be ok.Otherwise jquery &amp; ajax should be used...<br>
The problem is how to know the category selected? Storing it as an attribute isnt an option because it doesnt validate although it is convinient.. I use HTML5 doctype but i am not sure if i should use data- because i might validate it to xhtml again...<br>
Other good options ?</p>
