0
Only value enter in first box is displayed , how value of secong box also can be seen on same page
I want to create a form which ask for book and author name , and as click on submit it will display both value in same webpage.. I was able to do it with only one box and both of them.. Please guide how to do it https://code.sololearn.com/W86lm6sq4djK/?ref=app
8 Antworten
+ 1
https://code.sololearn.com/Wt1maTxsKqMu/?ref=app
+ 1
onclick="bookInput();authorInput();"
0
Calviղ Okay after going to function of book, it doesn't goes to function of author... That's why it doesn't print... correct me if am wrong?
0
Prateek Kumar Agarwal you got to call the function in order to run it.
And you also need to set the element of author id.
0
Gordon Okay this also wrong..
0
Calviղ also need to set element of author Id? Can you explain it please
0
Prateek Kumar Agarwal It obviously your html code does not have element with author id. How could the authorinput() update it?
Please study the code i shared.
And also complete your html course and start learning css and javascript to understand the fundamentals of the web languages first.
0
Calviղ Ok.. thanks