This demo is your chance to try out some of jQuery's DOM manipulation methods.
Follow these steps to get started:
$('p').css('color');
$('p').css('color', '#ff0000');Notice that a jQuery object is returned from the previous statement. This returned jQuery object is what allows you to "chain" methods together to perform sequential operations on the same selection.
$('p').attr('id');
$('p#introduction').attr("id", "first-paragraph");
$('p').attr('id');
$('h1').html('Fun with jQuery');Note that if there were multiple h1 elements on the page, they would all get this new inner HTML.
$('p#first-paragraph').html();
$('p#first-paragraph').text();Notice the nested tags are not included in the text.