Coding By Yakub
703 subscribers
273 photos
97 files
24 links
This channel for online classes videos for java , jdbc, hibernate, spring and spring boot and react js. With handson
Download Telegram
Login Form Validation
--------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<title>login form</title>
<script>
function check()
{
var v1=f.t1.value;
var v2=f.t2.value;
if(v1=="")
{
alert ( "Please Fill User Name:" );
document.f.t1.focus();
return false;
}
if(v2=="")
{
alert ( "Please Fill Password:" );
document.f.t2.focus();
return false;
}
else{
alert ( "Data Accepted" );
return true;
}
}
</script>
</head>
<body>
<fieldset>
<legend>Login Form</legend>
<form name="f" method="get" onsubmit="return check()">
User Name:<input type="text" name="t1"><p></p>
Password:<input type="password" name="t2"><p></p>
<input type="submit" value="Login">
</form>
</fieldset>
</body>
</html>
👍3
New spring, spring boot . Microservices batch start on 27 th morning 7am to 830 am . If any one interested text here