S
soup_or_power
My form looks as follows. Why isn't the function Validate called when
the function test is called? Thanks for your help!!
function Validate()
{
alert("in validate");
}
function test()
{
//do something
document.forms[0].submit;
}
<FORM method="POST" onsubmit="return Validate()">
....
<input type=text value="xyz" onclick="test()">
</FORM>
the function test is called? Thanks for your help!!
function Validate()
{
alert("in validate");
}
function test()
{
//do something
document.forms[0].submit;
}
<FORM method="POST" onsubmit="return Validate()">
....
<input type=text value="xyz" onclick="test()">
</FORM>