javascript - Can I stick extra stuff in HTML tags so that my JQuery can pick up on it? -


<div id="holder" rel="http://mysite.com/go.jpg" rel2="42pixels" rel3="gaga"> blah </div> 

is allowed?

if possible, recommend using html5's custom data attributes achieve this:

<div id="holder" rel="http://mysite.com/go.jpg" data-rel2="42pixels" data-rel3="gaga">     blah </div> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -