This demo is your chance to try out some of jQuery's DOM manipulation methods.
Follow these steps to get started:
li
element:
$('li').append('Great Fun!');
p
element:
$('p').after('<p>This is a new paragraph!</p>');
ol
element:
$('ol').addClass('error warning danger');
ol
element's class attribute to
confirm that it was changed:
$('ol').attr('class');
ol
element.
$('ol').addClass('cheese');
ol
element's class
attribute again:
$('ol').attr('class');Notice that adding a new class doesn't remove classes that are already there.