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>

17th Dec 2021, 1:58 PM
Pravin N
Pravin N - avatar
2 odpowiedzi
0
Pravin N u can use pattern attribute on input tag for validation Than use CSS to give color Like input:invalid{ Color:red }
17th Dec 2021, 3:48 PM
Pariket Thakur
Pariket Thakur - avatar
0
Plz..Explain this
18th Dec 2021, 1:02 AM
Pravin N
Pravin N - avatar