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 this allowed?

Answers


If possible, I would recommend using HTML5's custom data attributes to achieve this:

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

Need Your Help

Cygwin trouble running some bash commands

bash

Im having trouble with cygwin not running my script file as expected

Controls collection cannot be modified error? asp.net?

asp.net

In web application, when I am trying to place a ajax calender extender I am getting this error:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.