Problems validating forms in Facebox.
August 16th, 2008 by steamfrog
Recently I have been using Facebox on a new website I am building. Using forms in facebox seems like a smart way to go when you do not want them all over the main pages. I came across an issue with trying to validate facebox form fields… yeah.
Validation I used http://bassistance.de/jquery-plugins/jquery-plugin-validation/ - it is very good.
Here is the solution
Need to handle the onclick event of the submit button.
onClick=’$(”#my_form”).valid()’
This solved the problem of the facebox closing before the validation was complete.
Hope this helps others.





























October 2nd, 2008 at 3:13 pm
HI,
Thanks a lot for the tip!
How do you send the form input to a emailaddress?
Greets,
Jasper
March 2nd, 2009 at 12:45 pm
good article thank you!