I am trying to add HTML5 data-* values with jQuery and nothing seems to be happening, am I doing anything wrong?
Here's my HTML:
<a href="#" data-js="click-chat"></a>
jQuery:
$('[data-js=click-chat]').click(function(){
$(this).data("role",'test')
})
For some reason it isn't setting any data, or updating the existing value.