Storing arbitrary info in HTML tags for JavaScript?

with the introduction of html5, you can use attributes that start with data-, and they’ll still validate.

<input type="text" name="username" data-parentTab="tab1" value="non-default">

Leave a Comment