-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
27 lines (24 loc) · 867 Bytes
/
index.js
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
// const button11 = document.getElementById("close-btn");
// const parent = document.getElementById("parent");
// button11.addEventListener("click", () => {
// if (parent.classList.contains("hide-class")) {
// parent.classList.remove("hide-class");
// } else {
// parent.classList.add("hide-class");
// }
// });
// const inputt = document.getElementById("text-inp");
// const button = document.getElementById("submit-btn");
// button.addEventListener("click", () => {
// const name = inputt.value;
// console.log(name);
// inputt.value = "";
// });
const input1 = document.getElementById("name");
const input2 = document.getElementById("suggested");
const button = document.getElementById("submit-btn");
button.addEventListener("click", () => {
const name = input1.value;
const suggested = input2.value;
console.log(name, suggested);
});