/ Published in: JavaScript

How to check Html element type
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var htmlElement = ...// html element var type = "input"; // type if(htmlElement.nodeName.toUpperCase() == type.toUpperCase()) { //do something }
URL: http://caringprogrammer.blogspot.com/
Comments
