Hello Tanmoy,
It's the problem in your checkinput function. Please correct it as shown below.
function checkinput(form){
var fval = form.LoginId.value;
if (fval===null || fval === "" || "".equals(fval)){
alert('Please enter LoginId');
form.LoginId.focus();
return false;
}
fval = form.password.value;
if (fval===null || fval === "" || "".equals(fval)){
alert('Please enter Password');
form.password.focus();
return false;
}
}
I also observed that the code you have posted wrongly names
onsubmit
method as
önsubmit
(Notice two small dots on top of letter o). Also please properly close the input button tags. The testbed can be found
here[
^] on JSFiddle.
Regards,