Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Learning basic Re: Learning basic

#130310
CrocoDillon
Participant

Not sure if I understand the question but you can add elements with JS, for example:

$(‘body’).append(‘

‘);

or

$(‘body’).append($(‘

‘).addClass(‘container’));

See http://api.jquery.com/category/manipulation/ for more jQuery DOM manipulation functions.