Maybe I miss something but anywhere I read it is suggested that if I want to check whether a jQuery constructor returns a jQuery object is done by:
if(jQuery('.something').length){...}
but how would I validate if it is an html element in the jQuery object that it returns?
what I mean is that this also returns true:
if(jQuery(44551).length){...}
although it returns jQuery object it doesn't have html element in it.