/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
hasAttribute: function(node,attr) { if(node.hasAttribute) return(node.hasAttribute(attr)); else return(!!node.getAttribute(attr)); },