In my Submit button I have a JavaScript coded that will validate certain textfields.. The problem is if the value in the text field fails I must make away to stop the form from submitting..
any suggestions? I'm using JSF with this Javascript.. and to get a picture of my button here's the code for that
<h:commandButton value="Submit"
action="#{statisticsController.someProccess}"
onclick="javascript:showItem(10,document.getElementById('statForm:txtTo').value,document.getElementById('statForm:txtFrom').value);" />
Thanks in advance!!