jquery createlement code example
Example 1: jquery create html element
var newDiv = $('<div>My new div</div>'); //create Div Element w/ jquery
$( "#someOtherElement" ).append(newDiv); //append new div somewhere
Example 2: jquery create element properties
jQuery('<div/>')
.height("100px")
.width("100px")
.css('background','chocolate')
.css('border-radius','5px')
.addClass('firstclass')
.attr('id','newdiv')
.attr('data-info','test')
.appendTo('body');