[jQuery] tabs: possible to save a form when switching tabs?

[jQuery] tabs: possible to save a form when switching tabs?


Hi,
I'm using the jQuery tabs plugin from here http://docs.jquery.com/UI/Tabs.
I have a number of AJAX tabs. When one of the tabs loads (the tab
"Properties"), it loads with a form. How do I call my validate form
function and then submit this form when a user clicks on a different
tab?
Here are the relevant parts of the code:
<html>
<head>
<script type="text/javascript">
function validateForm(whichForm) {
...
}
$(function() {
$('#tabcontent > ul').tabs();
});
</script>
</head>
<body>
<div id="tabcontent">
<ul>
<li><a href="doc_properties.php"
title="Document"><span>Properties</span></a></li>
<li><a href="tabs.php" title="Tabs"><span>Tab #2</
span></a></li>
</ul>
</div>
</body>
</html>
Thanks, - Dave