+ 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
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
+ 9
https://code.sololearn.com/W2032F6b6K7A/?ref=app
This code will helps u to access then elements and verified it
+ 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)
+ 5
Calviղ Thanks!!!
But it's still not working! Please help!!!
+ 5
Namit Jain I told you: do not use document.write!!!
+ 5
Calviղ Because there's no output if I put that everywhere
+ 5
I changed all document.write to document.getElementById here. (But not blindly changed the words)
https://code.sololearn.com/Ww47i7f2J6AR/?ref=app
+ 4
Namit Jain Can you tell me why I still seeing 4 document.write on your code?!
+ 4
Namit Jain remove everywhere document.write
+ 4
Namit Jain you use document.getElementById wrongly.
Please study from documentation first
https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
+ 3
Calviղ Can you pls send the solution
+ 3
AKSHAY Yesss!!! But, I want to get a bit knowledge about javascript also!!!
Thanks!
+ 2
Calviղ Yess!! I used document.getElementById
But still not working!
+ 2
Calviղ done! Then?
+ 1
Namit Jain Of course, you need to adjust your html and JavaScript code, blindly replace document.write with document.getElementById would not work.
+ 1
use oninput event handler and if...else and loops together.
+ 1
Thanks
0
I want to be an app developer. Which language I need to learn?
0
Syed Hassan Ali
Learn java...
0
Hello everybody.Can I give you my question?