Javascript 如何停止传播下一个内联函数

Javascript 如何停止传播下一个内联函数,javascript,jquery,Javascript,Jquery,我有这个需要的html代码: //html code <a href="javascript:void(0);" title="Save" onclick="validate(event, document.thisForm); return submitForm(document.thisForm);"></a> <form name="thisForm"> //some stuff without submit button and require

我有这个需要的html代码:

//html code
<a href="javascript:void(0);" title="Save" onclick="validate(event, document.thisForm); return submitForm(document.thisForm);"></a>
<form name="thisForm">
    //some stuff without submit button and required inputs
</form
问题是,当验证出现错误时,不可能停止调用submitForm函数。

将onclick事件处理程序更改为:

return validate(event, document.thisForm) && submitForm(document.thisForm);
return validate(event, document.thisForm) && submitForm(document.thisForm);