+ 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

8th Oct 2017, 12:26 PM
Shalve ntius
Shalve ntius - avatar
2 Réponses
+ 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
8th Oct 2017, 2:10 PM
Calviղ
Calviղ - avatar
0
Calvin, thank you very much!
8th Oct 2017, 2:14 PM
Shalve ntius
Shalve ntius - avatar