I want to get nodeType and then compare it to where it is text node or element node.
try to access to those properties with
var mm = $('.jj').get(0); alert(mm.nodeValue); alert(mm.nodeType)