Please Write a function to validate please make the code in java like this function validate() {document.getElementById} ETC. 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 also when ever its false can you make the text print on the bottem saying "this code is valid" once i press the submite button + Submit
Please Write a function to validate
please make the code in java like this function validate() {document.getElementById} ETC.
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
also when ever its false can you make the text print on the bottem saying "this code is valid" once i press the submite button
<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>
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images