narenarya

Jquery creating and adding Html elements to a Html tag

Nov 5th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $("<tag>", {
  2. id: "permissionsInput",
  3. name: "permissions",
  4. type: "checkbox",
  5. click: function(){
  6. update();
  7. },
  8. checked: "checked"
  9. }).appendTo("#id_for_parent");
Advertisement
Add Comment
Please, Sign In to add comment