+ 2
Hello! I need help!!!The task is in that when clicking the button in the second field there must appear a text "hello".
The problem is that when clicking the button the text in a second field disappears. Help, please! https://code.sololearn.com/WC4DXWVzVrqY/?ref=app
2 Respuestas
+ 1
Few mistakes:
• you cant use action="POST" in form tag for JavaScript function.
• you need to add window.onload function call for all the JavaScript code in JS pane
• you need to call preventDefault function in the myF function to prevent redirection.
Check out the code:
https://code.sololearn.com/W5NMSD0uCyjz/?ref=app
0
Calvin, thank you very much!