Skip navigation

Inject the trigger elements

Inject the trigger elements: Creating Expandable Panels with jQuery
Inject the trigger elements: Creating Expandable Panels with jQuery

Now we need to run the function when the page is ready. This function will tell our script to wait until the browser has downloaded all of the HTML before the script is executed. Once we create the function, we can check it in our browser by right-clicking and choosing Inspect Element. We’ll see a brand-new div element and the actual text that matches the data link text value.

Resume Transcript Auto-Scroll
Skill Level Intermediate
46m 41s
Duration
30,388
Views
Show More Show Less
Skills covered in this course
Web Web Development jQuery

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.