Form submission problem
My code for xx.jsp will be like this
function Save()
{
if (cond1)
{
do actions;
}
else
{
this.disable=true;{I want the form to be in the same state}
}
}
<formname="xx" action="xx.jsp" method="post">
<input type="submit" name="save" value="Save" onclick=Save();>
</from>
But it is not happening. Other codes in the Save function are being executed but form submit is taking place even though I disable it? I need the button to be of type submit only. How do I do that?

