I have this code (with jQuery 1.9.1):
var Clon = $('#mylabel');
then I would change data-attributes, but is not established when I check the value:
Clon.data('hello','1');
but this method return the value:
Clon.attr('data-hello','1');
what can be the problem?