e.g. if i have this: whatever
then let say in jQuery, how can I find out that the dom element with id \"mydiv\"
alert($('#mydiv')[0].nodeName);