SyntaxFix
Write A Post
Hire A Developer
Questions
You need to return false;:
return false;
<input type='submit' value='submit request' onclick='return btnClick();' /> function btnClick() { return validData(); }