/ Published in: jQuery
this is a shortcut that simplifies making a new dom element.
$("#outerdiv").append( create("div").addClass("innerDiv").text("This is the inner div") )
Expand |
Embed | Plain Text
create = function(elementTagName) { return $(document.createElement(elementTagName)); }
You need to login to post a comment.
