jquery - Javascript - Convert dom element reference to node -
in jquery can this:
var domelement = document.getelementbyid("myid"); var tmp = jquery(domelement);
upon can node
var node = tmp[0];
i know how can done in native javascript.
regards
your domelement variable node of dom tree. tmp variable wraps jquery object , [0] indexer gets dom element back. native javascript first line of code.
Comments
Post a Comment