+ 4
Why this simple form submit has js uncaught type error show on the console?
2 ответов
+ 10
Place your JS code inside script tag in body or onload method of body and it will work.
Currently, your JS code is executing even before the HTML is rendered. That's why throwing error.
+ 4
@Ashwani thank you so much. You really saved my day. 🤗