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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -