I have searched for an answer but couldn\'t find one!
I have a simple form,
If you're already using jQuery.. you can use an event handler to trigger before submission
$(document).ready(function() { $("#formID").submit(function(){ // handle submission }); });
Reference: http://api.jquery.com/submit/