Viewers: in countries Watching now:
Frequently asked questions (FAQs) are a popular aspect of any web site. This course shows how to create questions that have expandable and collapsible answers, allowing visitors to easily find the information they need. Author and jQuery expert Chris Converse shows how to build an FAQ section for your site quickly, using the tools in Dreamweaver and the code libraries in jQuery. In addition, the course demonstrates how to automatically link to a specific question, and automatically open the answer, giving you the ability to provide users with a direct answer to their question.
To add in the content, let's open our snippets file. So in Dreamweaver let's choose File > Open. From the Desktop let's go to exercise files. Let's open snippets.html. Let's switch over to Code view. Inside of Code view let's do Edit > Select All, then choose Edit > Copy. Let's switch back to our faq.html. Let's switch over to Code view, and what we want to do inside of Code view is we want to take the class faq, select that entire div, delete it with all of the divs inside, and simply paste in all of the markup that we copied from the snippets file.
So we can scroll through and see all of the content now showing in the page. To test this out let's choose File > Save All, and then let's preview this in the browser. Once this loads in a browser we can scroll through the page in the browser and see all of individual questions. I can click on each question, and then it will open the corresponding answer to the question I clicked on. Then clicking on each question will close its corresponding answer as well. Now that we have all of our content in place, and we have all of the questions opening their corresponding answers, in the next movie we'll add some additional CSS rules for styling and positioning the Q and the A letters.
There are currently no FAQs about Create an Expandable FAQ Listing with jQuery and Dreamweaver.
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.