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 as if it was for beginers please.  also when ever its false can you make the text print on the bottem saying "this code is valid"                                                          +                                                                                                                                                                                                     Submit

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.4: A Case Study: Constructing A Date Class
Problem 7E
icon
Related questions
Question

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 as if it was for beginers please. 
also when ever its false can you make the text print on the bottem saying "this code is valid" 

    <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>

Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr