Created
November 4, 2014 15:29
-
-
Save appleton/ea648a97df8c41514c84 to your computer and use it in GitHub Desktop.
contents-from-ajax.js
This file contains hidden or 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 d = document.createElement('div'); | |
d.innerHTML = 'a load of html that you got back from the server'; | |
var contents = d.querySelector('div.whatever').innerHTML; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment