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
Post a Comment