8000 API · Himanxusharma/JavaScript@e3ec228 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3ec228

Browse files
committed
API
1 parent 64aacc9 commit e3ec228

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
document.getElementById('name-list').addEventListener('click',loadData)

DOM.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@
269269
// let val;
270270
// val = e;
271271

272-
// // Event target element
272+
// // Event target element
273+
// The target property returns the element where the event occured.
274+
// The target property is read-only.
275+
276+
273277
// val = e.target;
274278
// val = e.target.id;
275279
// val = e.target.className;

index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</div>
6666
<div class="col-auto">
6767
<label for="staticEmail2" id="email" class="visually-hidden">Email</label>
68-
<input type="text" id="staticEmail2" class="email" placeholder="Email">
68+
<input type="text" id="staticEmail2" class="email" placeholder="Email">
6969
</div>
7070
<div class="col-auto">
7171
<label for="inputPassword2" class="visually-hidden">Password</label>
@@ -76,8 +76,12 @@
7676
</div>
7777
</form>
7878
</div>
79+
<div class="check-btn">
80+
<button type="submit" class="btn btn-primary mb-3" id="check-btn">Get Data</button>
81+
</div></div>
82+
7983
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
80-
<script src="OOPs.js"></script>
84+
<script src="Api.js"></script>
8185
</body>
8286

8387
</html>

0 commit comments

Comments
 (0)
0