From the course: Building Great Forms with HTML and CSS
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Handling payment, part 3
From the course: Building Great Forms with HTML and CSS
Handling payment, part 3
- [Instructor] On our payment form, we just have a few more things that we want to do. The next item that we're going to take care of, is we are offering our user the ability to pay via credit card or by PayPal. So, when we click the radio button, what we want to have happen, is we want that credit card information to disappear if PayPal is selected. And if credit card is selected, we want to hide the PayPal information. So we'll accomplish this by using some JavaScript. I'm going to go into my code snippet file, for this particular video, and I'll scroll down a little bit. And the first thing we can do, is we can go ahead and add our JavaScript code. So down at the bottom we have some JavaScript snippets. We're going to select this very first one and copy it. I'll go into my payment file, and let's scroll down to the bottom where we have our JavaScript. Again, I'm still in the document ready and I'm just going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Organizing a payment form3m 56s
-
(Locked)
Flow and order2m 9s
-
(Locked)
Order summary overview5m 13s
-
(Locked)
Personal details summary9m 56s
-
(Locked)
Payment stepper2m 19s
-
(Locked)
Input mask8m 21s
-
(Locked)
Auto-populating city and state8m 15s
-
(Locked)
Shipping5m 53s
-
(Locked)
Handling payment, part 17m 53s
-
(Locked)
Handling payment, part 27m 19s
-
(Locked)
Handling payment, part 38m 27s
-
(Locked)
Review and confirmation pages5m 9s
-
(Locked)
-
-
-
-