Hi,
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 aswell:
$('#myID'.attr().each(function(a,b){
alert(a);
});
did not help either... so any suggestions would be appriciated.
thanks.