Create Element Using Jquery
jQuery('<div/>', { id: 'foo', href: 'http://google.com', title: 'Become a Googler', rel: 'external', text: 'Go to Google!' }).appendTo('#mySelector');