user7272
07-22-2010, 06:24 PM
i,
Am developing a webform using PL/SQL.
Am using javascript to do some form validation
Sample
if(a =="")
{
alert("Please enter the first name");
return false;
}
else if(b =="")
{
alert("Please enter the last name");
return false;
}
else if (y !="Test1")
{
if (y != "Test2")
{
if (y != "Test3")
{
alert("Enter the right text");
return false;
}
}
alert("am wrong outside");
}
else if(z =="")
{
alert("Please fill al the fields");
return false;
}
it passes till alter("am wrong outside") and executes the procedure but doesnt goes to the last else part.
I want it to go the last else part too.
Please help.
Am developing a webform using PL/SQL.
Am using javascript to do some form validation
Sample
if(a =="")
{
alert("Please enter the first name");
return false;
}
else if(b =="")
{
alert("Please enter the last name");
return false;
}
else if (y !="Test1")
{
if (y != "Test2")
{
if (y != "Test3")
{
alert("Enter the right text");
return false;
}
}
alert("am wrong outside");
}
else if(z =="")
{
alert("Please fill al the fields");
return false;
}
it passes till alter("am wrong outside") and executes the procedure but doesnt goes to the last else part.
I want it to go the last else part too.
Please help.