The error is in the following code:
$("#submitbtn").on(click, function() {
console.log("clicked");
return false
})
it should be:
$("#submitbtn").on("click", function() {
console.log("clicked");
return false
})
(Note on the double strings before and after click)
In order to debug your code first take atention to the error message, then click on the file that its throwing the error
Once clicked, if your code has been minified you can click in the braces to prettify it:
So once clicked the curly braces you will get this, understanding the error message will give you where is the issue:
8
solved Console Error on webpage – Javascript [closed]