Hard
Identify the reasons why this code will not work correctly:
(Several correct answers)
<form method="post" action="/app/send" name="myForm">
...
<input type="submit">
</form>
var form = document.querySelector('#myForm');
form.addEventListener('onsubmit', onSubmit);
function onSubmit() {
// do check #myForm fields...
}
Author: Jean-marie CléryStatus: PublishedQuestion passed 2103 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Javascript