html objects can have any attribute you want.
<a id="myLink" href="somePage.aspx" myattribute="test"></a>
In jQuery you can set that attribute by
$("#myLink").attr("myAttribute", "NewValue");
and can get the attribute with
var attr = $("#myLink").attr("myAttriubte");