Why do input fields disappear when displaying a result? PLZ HELP😨 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do input fields disappear when displaying a result? PLZ HELP😨

Why do input fields disappear when displaying a result? How to fix this? My code: https://code.sololearn.com/WuFl56r92YuC/?ref=app

15th Oct 2021, 6:15 PM
PR PRGR
PR PRGR - avatar
4 Answers
+ 1
PR PRGR Because of document.write As you get value using javascript same as set value in a tag using innerHTML https://code.sololearn.com/W8hRbx63YTNU/?ref=app
15th Oct 2021, 7:12 PM
A͢J
A͢J - avatar
+ 1
16th Oct 2021, 1:40 AM
PR PRGR
PR PRGR - avatar
0
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Maybe you know how to return three values: x, y, r from the function getNum()? I know how to return only one value and don't know how to return more.
16th Oct 2021, 1:44 AM
PR PRGR
PR PRGR - avatar
0
PR PRGR Store value in an object then return that object.
16th Oct 2021, 4:44 AM
A͢J
A͢J - avatar