I have a task form where I want to execute some JavaScript only when the form is valid. I know how to execute JavaScript when the Save button is pressed but how do I check if the form is valid?
I have seen code that checks if there are validation error messages displayed on the form but is there a better way?
