SEND HTML INPUT TO .JS FILE | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

SEND HTML INPUT TO .JS FILE

I just started learning JS and i got to the conditional part , i want to practise on some examples but how can i make a INPUT entry in my html code ? And how to send it to the javascript file ?

25th Jan 2019, 1:18 PM
SIMO
SIMO - avatar
2 Respuestas
+ 1
Here is some info on interacting with your HTML and CSS via JS (hit the "Next" button for more): https://www.w3schools.com/js/js_htmldom.asp For input elements, .value will give you what the user enters. Here is a demo I made for someone before: https://code.sololearn.com/W8MJ1x4qAmbr/?ref=app
25th Jan 2019, 1:48 PM
James
James - avatar
0
Here's the SoloLearn tutorial: https://www.sololearn.com/learn/JavaScript/2752/ It all seems a little confusing at first. Perhaps I can make you a better demo later.
25th Jan 2019, 1:54 PM
James
James - avatar