add a new element to DOM jquery code example
Example 1: jquery append html
$("p").append(" <b>You can write your Text Here </b>.");
Example 2: jquery add
$( "p" ).add( "div" ).addClass( "widget" );
var pdiv = $( "p" ).add( "div" );
$("p").append(" <b>You can write your Text Here </b>.");
$( "p" ).add( "div" ).addClass( "widget" );
var pdiv = $( "p" ).add( "div" );