Skip to content

Commit 1936d17

Browse files
authored
Create button_to_email_field.js
1 parent f869b09 commit 1936d17

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function sub() {
2+
var input = document.createElement("input");
3+
var button = document.getElementById("emailsub");
4+
input.setAttribute("type", "email");
5+
input.setAttribute("id", "input");
6+
input.setAttribute("placeholder", "Email");
7+
var send = document.createElement("button");
8+
send.setAttribute("id", "send");
9+
send.innerHTML = "send";
10+
// document.getElementById("sub ").innerHTML = " ";
11+
document.getElementById("button").replaceChild(input, button);
12+
document.getElementById("button").appendChild(send);
13+
}

0 commit comments

Comments
 (0)