Please correct my code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14
14th May 2018, 1:42 PM
Arpit Mittal
Arpit Mittal - avatar
4 Answers
+ 3
Try this. I modified it to allow repeating changes. On phone, type number in box and click out of box to get results. https://code.sololearn.com/WijC6uimk5Kz
14th May 2018, 1:58 PM
John Wells
John Wells - avatar
+ 5
John Wells he only said he needed to correct his code from producing errors.Thats why i didnt entirely change the concepts from the original code.I knew it had to be "day.value" and that the inputs would never update on new inputs,i just did his main priority,"dont produce errors",but its nice you helped
14th May 2018, 2:02 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 4
🇳🇬Brains switch on day is wrong should be day.value, since he wants to test the data from the box. Also, even an onload displays prior to putting data in the box.
14th May 2018, 2:00 PM
John Wells
John Wells - avatar
+ 2
use document.getElementById("inpu"); I did not understand what you were trying to do.
14th May 2018, 1:51 PM
Sunil Thakali
Sunil Thakali - avatar