Created
December 5, 2011 19:21
-
-
Save brianswisher/1434871 to your computer and use it in GitHub Desktop.
Create a DOM element w/ 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/>', { | |
id: 'myDiv', | |
title: 'my div', | |
text: 'This is my div' | |
}).prependTo('body'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment