Q:

Convert three headers and content panels into an accordion. Convert three headers and content panels into an accordion. Initialize the accordion and active the second option using jquery UI

0

Convert three headers and content panels into an accordion. Convert three headers and content panels into an accordion. Initialize the accordion and active the second option using  jquery UI

Note : Accordion - Displays collapsible content panels for presenting information in a limited amount of space.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

HTML Code:

ht









jQueryjQuery is a fast, small, and feature-rich JavaScript library.jQuery UIjQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. jQuiry MobilejQuery Mobile is a HTML5-based user interface system designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices




JavaScript Code:
 $( "#accordion" ).accordion({
  active: 1
});
var active = $( "#accordion" ).accordion( "option", "active" );

$( "#accordion" ).accordion( "option", "active", 1 );

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now