Created
August 27, 2014 20:10
-
-
Save geilt/817ff32b20414ddd5a16 to your computer and use it in GitHub Desktop.
jQuery $.load into Variable.
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 url = 'http://www.google.com'; | |
var load = $('<div>'); | |
var content = ''; | |
load.load(url, function(result){ | |
content = load.html(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment