Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,800 courses, including more Web and personalized recommendations.Start Your Free Trial Now
- View Offline
- What is jQuery?
- Installing jQuery
- Performing multiple operations with chaining
- Using classes
- Adding, modifying, and removing content dynamically
- Triggering a change with event binding
- Creating a dynamic contact form
- Building a slideshow gallery
- Creating simple jQuery animations
Skill Level Intermediate
In this challenge, we're going to do some manipulations on this web form. Explore California is a small non-profit with a minimal budget that has come to you for some changes to their contact form. Specifically, they want to make sure that you have to check this box before you can make some of these other choices. They just want to confirm that people actually own their bikes because, while they provide information on these tours, they don't offer bicycle rentals. So the first part of your assignment is to disable all of these check boxes when the page loads. So that they cannot be checked.
And then, when this check box has been checked, re-enable them, and if they uncheck it, disable them again. That's part one, part two, is that they want these mailing list opt in radio buttons to have an effect on where you go when you submit. So there are two response pages, this one is the contact submitted, which is the default to go along with, please send me monthly discounts. Which is the opt-in radio button. And then, there's another one, contact submitted no sub. Which just says thank you, without mentioning that you've subscribed to the mailing list. And they want this form to submit there when this radio button is chosen.
So to recap, here's the challenge, the web form shuffle. First, we need to disable all those tour check-boxes when the page first loads. And then when I own a bike is checked, enable all of them. Likewise, if that check-box is subsequently unchecked, disable all the tour check-boxes. And then make sure that the form goes to a different place, depending on whether they opt in or opt out from a mailing list subscription.
Sign up for a Premium Membership to download courses for Internet-free viewing.
Watch offline with your iOS, Android, or desktop app.Start Your Free Trial
After signing up, download the course here or from the iOS/Android App.