I was wondering if there is browser consistency what elements are stored in the attributes array.
Is all "data-xxx" attributes found through "$('#elm')[0].attributes"?
For example does the attributes-collection contain all the data-attributes below:
<input type="submit" value="Go" data-validation="foo" data-widgetId="bar">
What I need is a way of moving all relevant attributes from an input[type=submit] to a button-element with jQuery.