create a new DOM element


/ Published in: jQuery
Save to your folder(s)

this is a shortcut that simplifies making a new dom element.

$("#outerdiv").append(
create("div").addClass("innerDiv").text("This is the inner div")
)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.