I have a form, this form has a submit and a cancel button. when you press submit the following jquery will run:
$('#saveAction').click(function() {
// call validation function in javascript
});
and when cancel is pressed
$('#cancelAction').click(function() {
return true;
});
the reason to do this is to skip javascript validation and let the action= "page.php" do the rest of the job.
Now I am working in an older system that has a very complex validation functions write in javascript, this validation funcitons receive as a parameter the form. since I am going from jQuery to javascript how do I pass from jQuery the form that javascript will understand?
Thank you