What's next


show more What's next provides you with in-depth training on Web. Taught by Chris Converse as part of the Create an Expandable FAQ Listing with jQuery and Dreamweaver show less
please wait ...

What's next

Now one of the interesting things about this particular course is the way we wrote our JavaScript. We basically wrote a JavaScript function that would check to see the states of the individual questions and answers and create an animation based on whether or not the answer was already open or closed. And we could have as many questions and answers on our page as long as we followed our HTML pattern. So the scripts inside of our JavaScript, we basically used features like find the closest item and find items inside of those items and find items that have particular parents.

And so what this means is as long as we follow that HTML pattern, again, we can have as many of these items on the page, and they'll each function independent of each other. When you start writing your JavaScripts like this, one thing you might want to look at is creating plug-ins out of your scripts. On the jQuery web site, under the Documents, under Plugins/Authoring is information about how you can start to take so...

What's next
Video duration: 1m 16s 41m 48s Intermediate

Viewers:

What's next provides you with in-depth training on Web. Taught by Chris Converse as part of the Create an Expandable FAQ Listing with jQuery and Dreamweaver

Subject:
Web
Software:
Dreamweaver jQuery
Author:
please wait ...