I\'m matching ASP.Net generated elements by ID name, but I have some elements which may render as text boxes or labels depending on the page context. I need to figure out wh
in jquery 1.6 use prop()
var el = $('body'); if (el.prop('tagName') === 'BODY') { console.log('found body') }