Assigning click events to the tabs


show more Assigning click events to the tabs provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create a Sliding Tabbed Panel with jQuery and Dreamweaver show less
please wait ...

Assigning click events to the tabs

Now we're going to activate the tabs so our users can click on them. So it's still inside of the document ready function, make sure you're outside of the each function for the panel_container. Let's hit a few returns. Start with a dollar sign, another set of parentheses, tick marks inside for a string literal, .sp inside of the string literal, space .tabs, space, span.

Outside of the parentheses .each, another set of parentheses and a semicolon. Inside of the parentheses for each, type function, parentheses, brackets. Let's split that open on the brackets. So for each span we find inside of the tabs container, dollar sign, parentheses, type (this) inside of the parentheses, .on, beginning and ending parentheses, semicolon, two tick marks inside of the parentheses for on, type click. Outside of the string literal but still inside of the parentheses for on, comma, space function, another set of parentheses, another set of brackets. Let's split that open, ...

Assigning click events to the tabs
Video duration: 2m 24s 1h 6m Intermediate

Viewers:

Assigning click events to the tabs provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create a Sliding Tabbed Panel with jQuery and Dreamweaver

Subjects:
Developer Web
Software:
Dreamweaver jQuery
Author:
please wait ...