1<!DOCTYPE html>
2<html>
3<head>
4<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
5<script>
6$(document).ready(function(){
7 $("#btn1").click(function(){
8 $("p").append(" <b>Appended text</b>.");
9 });
10
11 $("#btn2").click(function(){
12 $("ol").append("<li>Appended item</li>");
13 });
14});
15</script>
16</head>
17<body>
18
19<p>This is a paragraph.</p>
20<p>This is another paragraph.</p>
21
22<ol>
23 <li>List item 1</li>
24 <li>List item 2</li>
25 <li>List item 3</li>
26</ol>
27
28<button id="btn1">Append text</button>
29<button id="btn2">Append list items</button>
30
31</body>
32</html>