⬅︎ Back to Difference between $.data('foo') and $.attr('data-foo') in jQuery
You can just stick another parameter onto a node, if you don't need to set it in the html. eg:node.something = '23skidoo';node.something> '23skidoo'Just don't trample on the stuff that needs to be there.
Comment
You can just stick another parameter onto a node, if you don't need to set it in the html. eg:
node.something = '23skidoo';
node.something
> '23skidoo'
Just don't trample on the stuff that needs to be there.