create p element javascript code example
Example 1: js create element
var newDiv = document.createElement("div");
document.body.appendChild(newDiv);
Example 2: jquery add
$( "p" ).add( "div" ).addClass( "widget" );
var pdiv = $( "p" ).add( "div" );