I want to create a function to handle form submission.
Ideally it would work like this:
- checks form for any anchor tags with a class=”error”.
- If it exists then do nothing.
- Else then perform the form action and method(method=post action=”file.php”).
- slideUp containing div
- Delay 2 seconds
- fade in div id=”form success message”
I am not that strong with if statements yet and could use some guidance.
Untested, but should give you direction.