/ Published in: jQuery
URL: http://tutsplus.com/lesson/creating-and-appending-content/
Create an open and close h2 add the text, class append to the article
Expand |
Embed | Plain Text
$('<h2></h2>', { text: 'Hello from js 2', class: 'myClass' }).appendTo('article');
You need to login to post a comment.
