jquery create html element
snippet in javascript

jquery create html element

user8973

var newDiv = $('<div>My new div</div>');  //create Div Element w/ jquery
$( "#someOtherElement" ).append(newDiv); //append new div somewhere

create an element jquery

user8121

$('<div>hello</div>').appendTo('#parent');

jquery append html

user6303

$("p").append(" <b>You can write your Text Here </b>.");