+ 4

Please what's wrong with these code? Its not working properly. I want to accept input from the user and the write it to the scre

https://code.sololearn.com/WqcmIWxw4KO8/?ref=appi

1st Aug 2019, 8:24 PM
Joseph Onipede
Joseph Onipede - avatar
3 RĂ©ponses
+ 4
There are just a couple things wrong - First, in your HTML, you seem to have forgotten the () following the function name in the onclick event for the second input element. Not having it won't allow your function to run, so adding those in allow it to do so. Within your JavaScript, you made the same mistake when declaring the function doc so just changing it to doc() should work. Lastly, you misspelled "escape" on line 2 in your JS, so fixing that up allows your program to run properly
1st Aug 2019, 8:45 PM
Faisal
Faisal - avatar
+ 3
Thank you Faisal its now working well😁😁 Thank you all👍👍
2nd Aug 2019, 6:24 AM
Joseph Onipede
Joseph Onipede - avatar
0
This code must be executed in server platform, in order to save data added in the form and initiate the button
1st Aug 2019, 11:25 PM
Vincent Langa
Vincent Langa - avatar