Return to Snippet

Revision: 55419
at February 6, 2012 12:14 by caringprogrammer


Updated Code
var htmlElement = ...// html element
var type = "input"; // type
if(htmlElement.nodeName.toUpperCase()  == type.toUpperCase())
{
    //do something
}

Revision: 55418
at February 6, 2012 12:11 by caringprogrammer


Initial Code
var htmlElement = ...// html element
var type = "input" // type
if(htmlElement.nodeName.toUpperCase()  == type.toUpperCase())
{
    //do something
}

Initial URL
http://caringprogrammer.blogspot.com/

Initial Description
How to check Html element type

Initial Title
Javascript checking HTML element type

Initial Tags
javascript, html

Initial Language
JavaScript