Return to Snippet

Revision: 56807
at April 15, 2012 22:44 by paul0078


Initial Code
$('<div>',{
	id: 'test',
	text: 'This is the element text',
	class: 'Paul',
	click: function(){
		alert('Liverpool');
	}
}).insertAfter('article');

Initial URL

                                

Initial Description

                                

Initial Title
jQuery create a new element

Initial Tags
javascript, jquery

Initial Language
JavaScript