Created
January 2, 2012 12:07
-
-
Save tsevdos/1550446 to your computer and use it in GitHub Desktop.
Convert a jQuery object to raw DOM object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myDiv= $('div')[1]; // myDiv is a raw DOM object | |
alert(myDiv.innerHTML) // and we can do all the normal things with it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myDiv= $('div').get(1); // myDiv is again a raw DOM object | |
alert(myDiv.innerHTML) // and we can do all the normal things with it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment