I want to get nodeType and then compare it to where it is text node or element node.
I know it wasn't the question, but to see what type it is (DIV, SPAN, etc), use tagName.
var mm = $('.jj').get(0); alert(mm.tagName);