HTML and JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HTML and JavaScript

how to make a <script> function displayname() { document.getElementById("data").value; } </script> and <input> to work to print a text that you write in PLS HELP ME!!!

8th Dec 2016, 10:14 AM
3.br_9_Ključevšek
3.br_9_Ključevšek - avatar
1 Answer
0
the syntax is correct, but i think you put the 'script' tag before the element that has 'data' id.
8th Dec 2016, 3:07 PM
Adhya Adam
Adhya Adam - avatar