0
if Password not matched or email not valid we need to return with green colour else red colour.
<body> <div class="container"> <div class="header"> <h2>Register with us<h2> </div> <form class="form" id="form"> <div class="form control"> <label>Username</label><input type="text"><br> <label>Email</label><input type="text"><br> <label>Password</label><input type="text"><br> <label>Confirm Password</label><input type="text"><br> <button>Submit<button> </div> </form> </div> </body>
2 Réponses
0
Pravin N u can use pattern attribute on input tag for validation
Than use CSS to give color
Like
input:invalid{
Color:red
}
0
Plz..Explain this