Hi, I am trying to do the same thing, I have gone thru all the similar articles on stackoverflow n over the internet but it doesnt work for me.
I am able to access all the default attributes easily but I am not able to grab the custom attribute.
in the .ascx page I have elements that has a custom attribute:
<input id="update_title" type="text" value="update title:"
data-helpid="3" style="width:270px;" />
and then in the javascript attached to the Master page I have
$("[data-helpid]").each(function() {
alert('test');
});
I have tried many variabtions of it but it doesnt seem to work. What am I missing?