/ Published in: JavaScript
URL: http://caringprogrammer.blogspot.com/
How to check Html element type
Expand |
Embed | Plain Text
var htmlElement = ...// html element var type = "input"; // type if(htmlElement.nodeName.toUpperCase() == type.toUpperCase()) { //do something }
You need to login to post a comment.
