Can anyone explain why this works:
$('#someId').data('typeId', 2);
$('#someId').data('type-id'); // will return 2
Here is the fiddle as well: http://jsfiddle.net/L6nLpgdb/
Thank you !
Can anyone explain why this works:
$('#someId').data('typeId', 2);
$('#someId').data('type-id'); // will return 2
Here is the fiddle as well: http://jsfiddle.net/L6nLpgdb/
Thank you !