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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 1CP
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage