Skip to content

Instantly share code, notes, and snippets.

@NicholasTD07
Last active August 29, 2015 14:14
Show Gist options
  • Save NicholasTD07/eb94a440e4ea156cb7c2 to your computer and use it in GitHub Desktop.
Save NicholasTD07/eb94a440e4ea156cb7c2 to your computer and use it in GitHub Desktop.
$("<input/>", {
id: "permissionsInput",
name: "permissions",
type: "checkbox",
click: function(){
update();
},
checked: "checked"
}).appendTo("#myForm");
$('<div/>', {
'id':'myDiv',
'class':'myClass',
'text':'Text Only',
}).on('click', function(){
alert(this.id);
}).appendTo('body');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment