$('code')
$('#myid')
$('.myclass')
$('*')
$('code, #myid, .myclass')
Original lab by Karl Swedberg Enhanced by Cody Lindley. FYI (ie6 != supported)
$('selector').addClass('highlight').animate({ marginLeft: 10}, 'fast');
<div id="myid">
. It is followed by a horizontal rule.This is a paragraph, which means it is wrapped in <p>
and </p>
. Those "p" tags in the previous sentence are formatted as <code>
.
<li>
) in an unordered list (<ul>
). class
of "myclass otherclass"<p class="myclass">
This is another paragraph. It has class="myclass" Otherwise, nothing special about it at all.
This is a paragraph, which means it is wrapped in <p>
and </p>
. Those "p" tags in the previous sentence are formatted as <code>.