As an exercise I have added some parsley validation to this form here http://matthewpiatetsky.com/cs401/login.html
I am now trying to add a similar validation to the form here
http://matthewpiatetsky.com/cs401/writereviews.html
(I have some mouseout validation on the text area)
I am running into two issues:
- How can I get the form to validate before the form submits to its action? Can I run validation first, and if validation succeeds, then submit the form.
- How can I add data-required="true" to the jquery raty stars to force the user to fill those in?
Thanks!