How can I get all attributes of an HTML element? For example I have an element:
<input type="text" class"cls1" id="myId" name="myName"/>
and I want to see all attributes/properties that can be used for this input and not only attribute assigned already (type, class, id, name) on but all available attributes that can be used on this element.
With this method I can see only assigned attributes :|
var attr = document.getElementById("myId").attributes;
console.log(attr);