Skip to content

Instantly share code, notes, and snippets.

@sikanrong
Created May 30, 2015 20:52
Show Gist options
  • Select an option

  • Save sikanrong/6de296e2a3a9c4d80ecc to your computer and use it in GitHub Desktop.

Select an option

Save sikanrong/6de296e2a3a9c4d80ecc to your computer and use it in GitHub Desktop.
<html>
<body>
<script type="text/javascript">
var newDiv = $('<div/>', {
id: 'elementID',
class: 'className'
}).appendTo('body');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment