Please Write a function to validate an email
Please Write a function to validate an email. Below is the html element we're validating, please make the java code as simple as posible thank you.
The validation should check for:
if the numbers were 1 through 9
if there is a name
if email is valid
if cell phone i valid
if Card number, EXP date and CVV is valid or not
if the address is valid or not
<div class="bg">
<div class="in">
<div class="ro">
<img class="ba"src="stle/pg1/logo.png">
<div class="C">+</div>
<form id="result" action="#">
<input type="text" placeholder="Choose from item 1-9">
<input type="text" placeholder="Name">
<input type="email" placeholder="E-mail@gmial.com" id="email">
<input id="Phone nuber" type="text" placeholder="Phone number">
<input id="Card Number" type="text" placeholder="Card Number">
<input id="Card Exp Date" type="text" placeholder="Card Exp Date">
<input id="Card CVV" type="text" placeholder="Card CVV">
<input id="Address" type="text" placeholder="Address">
<div class="sub"> <a href="file:///C:/Users/Mabda/OneDrive/Documents/men.html" id="#" button> Submit</a></div>
</form>
</div>
</div>
</div>

Step by step
Solved in 2 steps









