+ 2

How to store user input html values in a js array?

I'm trying to create a login portal. In which I need to ask the user to enter their informations and store it in a JavaScript array. And then I gave a menu login, in which I'll ask to enter the Username and password. After that I need to check the user name and password with the array.

2nd Mar 2018, 8:13 AM
Hemath Kumar
Hemath Kumar - avatar
14 ответов
+ 2
You can add inputs to a array with this code: https://code.sololearn.com/W2orZC7ax93L/?ref=app
2nd Mar 2018, 9:05 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
is it is JavaScript?
2nd Mar 2018, 9:07 AM
Hemath Kumar
Hemath Kumar - avatar
0
Yes, it is Javascript but with a library called Jquery.
2nd Mar 2018, 9:08 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
I'm very new to JavaScript.... so will you please answer me with pure Js basic? please....
2nd Mar 2018, 9:08 AM
Hemath Kumar
Hemath Kumar - avatar
0
Sure, I am busy right now but I will make it later, okey?
2nd Mar 2018, 9:13 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
okay and very thank you bro.... I'll be waiting for your reply....!!
2nd Mar 2018, 9:14 AM
Hemath Kumar
Hemath Kumar - avatar
2nd Mar 2018, 9:29 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
thank you very much.... now I will gonna execute this...
2nd Mar 2018, 9:30 AM
Hemath Kumar
Hemath Kumar - avatar
0
also I have another question... may I ask here?
2nd Mar 2018, 9:30 AM
Hemath Kumar
Hemath Kumar - avatar
0
Sure
2nd Mar 2018, 9:30 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
Im going to create a sample page. it will contain list of questions, if the user clicks the question the answer need to display. if clicked another question the answer for previous question need to be closed and the answer for new question should be displayed. give me solution with the same Html and js.... let me know when you free
2nd Mar 2018, 9:33 AM
Hemath Kumar
Hemath Kumar - avatar
0
Is it okey if I make that with Jquery? I suggest you also use jquery because it makes everything much easier!
2nd Mar 2018, 9:39 AM
Bastiaan Jansen
Bastiaan Jansen - avatar
0
I don't know jquery.... to know this, first I need to study js....so that only.... please
2nd Mar 2018, 9:42 AM
Hemath Kumar
Hemath Kumar - avatar
0
Then I can't help you... Sorry! Maybe someone else can help you.
2nd Mar 2018, 9:44 AM
Bastiaan Jansen
Bastiaan Jansen - avatar