using date object how can i add this to my jscode. Please the coding should not be in html script but should be in my jscode. the html code below is for reference only to validate form.   Expiry Date (Month) Required field Expiry Date Valid expiry date to ensure the card being used has not expired NOTE: regarding the expiry date, you MUST use the date object to ensure that your date check is dynamic.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

using date object how can i add this to my jscode. Please the coding should not be in html script but should be in my jscode. the html code below is for reference only to validate form.

 

Expiry Date (Month)

Required field

Expiry Date

Valid expiry date to ensure the card being used has not expired

NOTE: regarding the expiry date, you MUST use the date object to ensure that your date check is dynamic.

 

<label for="month">Expiry Date</label>
                                <select id="month" name="month">
                                    <option>- Month -</option>
                                    <option value="1">January</option>
                                    <option value="2">February</option>
                                    <option value="3">March</option>
                                    <option value="4">April</option>
                                    <option value="5">May</option>
                                    <option value="6">June</option>
                                    <option value="7">July</option>
                                    <option value="8">August</option>
                                    <option value="9">September</option>
                                    <option value="10">October</option>
                                    <option value="11">November</option>
                                    <option value="12">December</option>
                                </select>
                                <select id="year" name="year">

                                </select>
                                <p class="cardError error" id="month_error">* You must choose a month</p>
                                <p class="cardError error" id="expiry_error">* Invalid expiry date</p>
                            </li>

Purchase Items
-Card Info
Name on Card
Expiry Date
Card Number
Clear Order
*
Required field
- Month -
2022
* You must choose a month
* Invalid expiry date
*
Required field
* Invalid card number
Transcribed Image Text:Purchase Items -Card Info Name on Card Expiry Date Card Number Clear Order * Required field - Month - 2022 * You must choose a month * Invalid expiry date * Required field * Invalid card number
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY