Side navigation
Ticket #3924: test2.html
File test2.html, 0.5 KB (added by LosT, January 20, 2009 01:56PM UTC)
Test case
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function($){
$('p:last-child').css('background','red');
$('p:first-child').remove();
$('div').append('<p>test5</p>');
$('p:last-child').css('background','blue');
});
</script>
</head>
<body>
<div>
<p>test1</p>
<p>test2</p>
<p>test3</p>
<p>test4</p>
</div>
</body>
</html>
Download in other formats:
Original Format
File test2.html, 0.5 KB (added by LosT, January 20, 2009 01:56PM UTC)
Test case
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function($){
$('p:last-child').css('background','red');
$('p:first-child').remove();
$('div').append('<p>test5</p>');
$('p:last-child').css('background','blue');
});
</script>
</head>
<body>
<div>
<p>test1</p>
<p>test2</p>
<p>test3</p>
<p>test4</p>
</div>
</body>
</html>