jQuery get all HTML attributes
html, jquery
Solution
Use this plugin: http://plugins.jquery.com/project/getAttributes
Problem
is there a way to get the list of attributes set to an element? example: ``` <div id="myID" title="I am Title" myAttr="I am something else">Hello World!!!</div> ``` Is there a way to get all the above attributes? I tried this already but nothing so far: ``` $('#myID').attr(); ``` I tried this as well: ``` $('#myID').attr().each(function(a,b){ alert(a); }); ``` did not help either... so any suggestions would be appreciated. thanks.