Reputation: 271824
For example, one of them has this:
<div id="hat" re="mouse" > text here </div>
$(.#hat).re = ??????
Upvotes: 1
Views: 69
Reputation: 2502
$('#hat').attr('re');
will get it
$('#hat').attr('re', 'blah');
will set it
Upvotes: 3
Reputation: 21
If you want to update the value of the re attribute simply write this:
$('#hat').attr('re', 'newValue');
Upvotes: 2