element.nodeName not defined for a html element created using jQuery
Posted
by robezy
on Stack Overflow
See other posts from Stack Overflow
or by robezy
Published on 2010-05-25T08:09:57Z
Indexed on
2010/05/25
8:11 UTC
Read the original article
Hit count: 217
jQuery
I created a new HTML element using jQuery.
var v=jQuery('<p>Hello</p>);
But when I try to get the nodeName of the new element,
v.nodeName.toLowerCase();
I get error, saying that nodeName is not defined. What is wrong here?
Thanks.
© Stack Overflow or respective owner