Is it really not possible to get all the attributes inside an html tag with jQuery in a simple way? For instance if I have the following element
<div id="1" class="myclass" height=200 data-js-reload="20">
I would like to get a string containing id="1" class="myclass" height=200 data-js-reload="20"
Haven't been able to find an elegant solution for such a "simple" problem. I tried looking into the data() function, but didn't quite seem to be what I was looking for.