We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f869b09 commit 1936d17Copy full SHA for 1936d17
Buttons/Button_to_email_field/button_to_email_field.js
@@ -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