Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
For this jQuery UI challenge, you're working with the client, Explore California, specifically working on their contact page. Generally speaking they like it, but there's a few things that they'd like to see happen. First they'd like these two panes to be collapsed into an accordion. They'd also like to have a date picker on the date of tour page, and they want to make sure that you can't select a date that isn't before tomorrow. In other words, they don't want people to be able to request information for tours that have already happened. Next, they want to be able to, not only have people check off which ones they like, but allow them to drag to the top of the list the ones that they like most.
And then submit them. So there's three parts here. Let's go over them. Here are the pieces of our jQUERY UI challenge. First, convert the contact form into an accordion. One of the things you should note here, is that each pane might not fit the content exactly. One of them might be too big, one of them might be too small. So when you instantiate it, see how it looks, and you might need to adjust the options to make sure it looks just right. This is going to take a little bit of massaging of the HTML most likely, to fit the requirements of the Accordion widget. Next you're going to need to add a date picker.
And when you add the date picker, set a minimum date of tomorrow, so that people can't choose a date that's already passed, or is today. And then finally make the tour choices sortable. You don't have to worry about processing the results when the form is submitted. Just make sure that they're sortable and people can check off the ones they like. This challenge is going to incorporate some massaging of the HTML, you might need to tweak a bit of the CSS, although I have provided for you a CSS file that makes the theme of the UI widgets, look a little better on this page. If you want to do some more massaging of those, feel free to.
That's your jQuery UI challenge. Good luck.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.