Ticket #3924: test2.html
File test2.html, 479 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | <html> |
2 | <head> |
3 | <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> |
4 | <script type="text/javascript"> |
5 | jQuery(function($){ |
6 | $('p:last-child').css('background','red'); |
7 | $('p:first-child').remove(); |
8 | $('div').append('<p>test5</p>'); |
9 | $('p:last-child').css('background','blue'); |
10 | }); |
11 | </script> |
12 | </head> |
13 | <body> |
14 | <div> |
15 | <p>test1</p> |
16 | <p>test2</p> |
17 | <p>test3</p> |
18 | <p>test4</p> |
19 | </div> |
20 | </body> |
21 | </html> |