forked from bmanim420/dom-manipulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (33 loc) · 1.09 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>DOM Manipulation Exercises</title>
</head>
<body>
<h2 id="heading">DOM Manipulation Exercises</h3>
<h4>Task 2 a</h4>
<div id="task2a"></div>
<button id="textBtn2">Add Hello World</button>
<h4>Task 2 b</h4>
<button onclick="changeBGColor(event);" >Pink</button>
<button onclick="changeBGColor(event);" >Green</button>
<h4>Task 2 c</h4>
<button id="getGoogle" >Visit Google!</button>
<!-- ***** -->
<h3>With jQuery</h3>
<h4>Task 4 a</h4>
<div id="task4a"></div>
<button id="addText4">Add text</button>
<h4>Task 4 b</h4>
<button onclick="changeBGColor(event);" >Pink</button>
<button onclick="changeBGColor(event);" >Green</button>
<h4>Task 4 c</h4>
<input id="num1" type="number" placeholder="Number 1">
<input id="num2" type="number" placeholder="Number 2">
<button id="sum">ADD</button>
<p>The sum is <span id="answer"></span></p>
<!-- Insert your JavaScript file -->
<script src="jquery-3.3.1.min.js"></script>
<script src="script.js"></script>
</body>
</html>