How to call javascript original function while using selector
Hi:
I meet a problem when using selector. The code snippet is as following:
- var nodeID = document.getElementById(nodeid);
if (nodeID != null) {
var handling = $("#" + nodeid);
handling .empty();
nodeID.parentElement.removeChild(nodeID);
}
I hope I can use
- handling.parentElement.removeChild(nodeID);
but it in fact not working and return error.
is there any way to call javascript prototype function when using selector,
thanks a lot.