-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjq.html
More file actions
29 lines (23 loc) · 680 Bytes
/
jq.html
File metadata and controls
29 lines (23 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- <script src="jquery-3.6.0.min.js"></script> -->
<!-- <script type="text/javascript" src="~/Users/chanyuyan/nodetest/jquery-3.6.0.min.js"></script> -->
<!-- <script src="jquery-3.6.0.js"></script> -->
<script>
$(document).ready(function(){
$("button").click(function(){
alert('Hi');
$("p").html("Hello <b>world!</b>");
});
});
</script>
</head>
<body>
<button>Change content of all p elements</button>
<img src="images/img1.jpg" width=”10″ height=”10″>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>