I want to put all attributes in a Html element into an array: like i have a jQuery Object, whichs html looks like this:
Simple:
var element = $("span[name='test']"); $(element[0].attributes).each(function() { console.log(this.nodeName+':'+this.nodeValue);});