+ 24

[SOLVED] How to take multiple inputs from the user and verify them using JavaScript!

Here's my try! I want to make a program that takes input from the user as long as it is wrong. I have tried it! But it is working only 2 times! FRONT-END ANIMAL Coder Igor Makarsky Pegasus Lamya😉 JΞΜΔ 🇨🇩👑 Abhay https://code.sololearn.com/WwT5Aa3RIFFZ/?ref=app

26th Jun 2020, 9:40 AM
Namit Jain
Namit Jain - avatar
22 Réponses
+ 11
Please don't use document.write to build any web project. Use Document method getElementById() https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
26th Jun 2020, 9:47 AM
Calviղ
Calviղ - avatar
+ 9
https://code.sololearn.com/W2032F6b6K7A/?ref=app This code will helps u to access then elements and verified it
26th Jun 2020, 12:03 PM
Coder
Coder - avatar
+ 6
Valentine kwadosky I don't know any shortcut but you can try this. var n = "namit"; n[0] = n[0].toUpperCase(); console.log(n)
27th Jun 2020, 8:38 PM
Namit Jain
Namit Jain - avatar
+ 5
Calviղ Thanks!!! But it's still not working! Please help!!!
26th Jun 2020, 10:05 AM
Namit Jain
Namit Jain - avatar
+ 5
Namit Jain I told you: do not use document.write!!!
26th Jun 2020, 10:08 AM
Calviղ
Calviղ - avatar
+ 5
Calviղ Because there's no output if I put that everywhere
26th Jun 2020, 10:46 AM
Namit Jain
Namit Jain - avatar
+ 5
I changed all document.write to document.getElementById here. (But not blindly changed the words) https://code.sololearn.com/Ww47i7f2J6AR/?ref=app
26th Jun 2020, 12:06 PM
Calviղ
Calviղ - avatar
+ 4
Namit Jain Can you tell me why I still seeing 4 document.write on your code?!
26th Jun 2020, 10:43 AM
Calviղ
Calviղ - avatar
+ 4
Namit Jain remove everywhere document.write
26th Jun 2020, 10:49 AM
Calviղ
Calviղ - avatar
+ 4
Namit Jain you use document.getElementById wrongly. Please study from documentation first https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
26th Jun 2020, 10:53 AM
Calviղ
Calviղ - avatar
+ 3
Calviղ Can you pls send the solution
26th Jun 2020, 10:55 AM
Namit Jain
Namit Jain - avatar
+ 3
AKSHAY Yesss!!! But, I want to get a bit knowledge about javascript also!!! Thanks!
27th Jun 2020, 8:10 AM
Namit Jain
Namit Jain - avatar
+ 2
Calviղ Yess!! I used document.getElementById But still not working!
26th Jun 2020, 10:13 AM
Namit Jain
Namit Jain - avatar
+ 2
Calviղ done! Then?
26th Jun 2020, 10:51 AM
Namit Jain
Namit Jain - avatar
+ 1
Namit Jain Of course, you need to adjust your html and JavaScript code, blindly replace document.write with document.getElementById would not work.
26th Jun 2020, 12:01 PM
Calviղ
Calviղ - avatar
+ 1
use oninput event handler and if...else and loops together.
27th Jun 2020, 7:46 AM
Jithu Joshy Jy
Jithu Joshy Jy - avatar
+ 1
Thanks
27th Jun 2020, 8:51 PM
Valentine kwadosky
Valentine kwadosky - avatar
0
I want to be an app developer. Which language I need to learn?
27th Jun 2020, 9:57 AM
Syed Hassan Ali
Syed Hassan Ali - avatar
0
Syed Hassan Ali Learn java...
27th Jun 2020, 11:48 AM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar
0
Hello everybody.Can I give you my question?
27th Jun 2020, 8:10 PM
Dostonjon Hoshimov
Dostonjon Hoshimov - avatar