Email Email is required
Please Write a function to validate
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
Below is the html please make the java code as simple as posible as if it was for beginers please.
also when ever its false can you make the text print on the bottem for example look at the picture
<div class="g">
<div class="n">
<div class="r">
<img class="a" src="#">
<div class="p">+</div>
<form id="result" action="#">
<input type="text" id="number" placeholder="Choose from item 1-9">
<input type="text" id="name" placeholder="Name">
<input type="email" emailplaceholder="E-mail@gmial.com" id="email">
<input id="Phonenumber" type="text" placeholder="Phone number">
<input id="CardNumber" type="text" placeholder="Card Number">
<input id="CardExpDate" type="text" placeholder="Card Exp Date">
<input id="CardCVV" type="text" placeholder="Card CVV">
<input id="Address" type="text" placeholder="Address">
<div class="sub"> <a onclick="validate()" button> Submit</a></div>
</form>
</div>
</div>
</div>
</body>
</html>
Step by step
Solved in 2 steps