Last active
December 18, 2015 16:49
-
-
Save sohyl87/5814047 to your computer and use it in GitHub Desktop.
Create div & append to another div body using jQuery.
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
$('<div />', { | |
'class': 'clearfix', | |
html: "<section><img src='{source}' width='80'></section>" | |
}).appendTo('#foo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment