Assignment5 Instructions
Assignment5 Instructions
Be sure to trim the entries and put them back into the controls regardless of whether
the entries are valid.
5. In index.html, change the text in the <small> tag to your name and student number.
Assignment 5 Part 2: Convert the FAQs app to an
Accordion widget
This assignment has you change the FAQs application from JavaScript and jQuery code to
a jQuery UI Accordion widget.
1. Open the starter folder attached (zipped) to this Assignment folder:
Evaluations\Assignments\Assignment 5\Assignment5-Files.zip -> faqs
2. In the HTML file, note that the link and script tags that you need for jQuery UI have
been coded for you. Then, rewrite the HTML so it’s consistent with the HTML that the
Accordion widget needs. Here’s what the jQuery UI website says about the Accordion
widget:
“The underlying HTML markup is a series of headers (h3 tags) and content divs so
the content is usable without JavaScript.”
3. In the JavaScript file, comment out everything within the ready() event handler. Then,
write the code for using the Accordion widget so all the panels can close and the
panel height is based on the content height.
4. In the CSS file, comment out everything that’s no longer needed for this application.
5. In index.html, change the text in the <small> tag to your name
and student number.