Flipping content to a div (Transitions and 3D Transforms)
A Pen by Sayed Rafeeq on CodePen.
| // submit is an action performed ON THE FORM ITSELF... | |
| // probably best to give the form an ID attribute and refer to it by that | |
| $('form').submit( function (event) { | |
| // prevent the usual form submission behaviour; the "action" attribute of the form | |
| event.preventDefault(); | |
| // validation goes below... | |
| // now for the big event | |
| $.ajax({ | |
| // the server script you want to send your data to |
Flipping content to a div (Transitions and 3D Transforms)
A Pen by Sayed Rafeeq on CodePen.