M
mak
hi,
i'm doing a validation in a JSP page. in two fields
function valli()
{
valid = true;
if ( document.all['lecture_held'].value == "")
{
alert("Please Select total Lecture Cunducted");
document.all['lecture_held'].focus();
valid = false;
}
if ( document.all['att'].value == "")
{
alert("Please Enter Students Attendance");
document.all['att'].focus();
valid = false;
}
return valid;
}
when it returns false then it executes the jsp code...
what should i do so that when it return true then only it should
execute the jsp code....
please help
thank you
i'm doing a validation in a JSP page. in two fields
function valli()
{
valid = true;
if ( document.all['lecture_held'].value == "")
{
alert("Please Select total Lecture Cunducted");
document.all['lecture_held'].focus();
valid = false;
}
if ( document.all['att'].value == "")
{
alert("Please Enter Students Attendance");
document.all['att'].focus();
valid = false;
}
return valid;
}
when it returns false then it executes the jsp code...
what should i do so that when it return true then only it should
execute the jsp code....
please help
thank you