I tried this below. I think the return Object of $(“div.tab_select”)[0] isn’t a jQuery Object, but I can’t even use pure javascript method.
Is there any way to make it jQuery Object? for instance $($(“div.tab_select”)[0])..I know this’s silly;
Thank you for reading.
var tmp = $("div.tab_select")[0];
alert(tmp); //This gives me HTMLDivElement collectly. But I can't use any of javascript..
alert(tmp.nodeName); //But this give me error "Uncaught TypeError: Cannot read property 'nodeName' of undefined"
tmp.hide(); //Neither, I can't use this.
1 Answer