I have one form which has to do two functions on sumbit.
The form looks lik this.
<form method="post" id="searchlist " name="searchlis t" onsubmit="retur n (OnSubmitForm(r esult) && validate())">
And the javascript is:
Code:
function OnSubmitForm(result)
{
if(result == 'Show_Results')
{
document.searchlist.action