in Education by
I'm working on a site that has a dynamically generated FAQ and I'm trying to get nested accordions working. The problem is, only the first collection of questions take on the ui-accordion class. Here's my code: http://jsfiddle.net/SmFdt/ (I just copied the source of the page and stripped out most of the text) What am I doing wrong? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You've got the same id assigned to multiple divs. Try the following instead: HTML

Frequently Asked Questions

One

A

AAAAAAAAAA

B

BBBBBBBBBB

Two

A2

AAAAAAAAAA2

B2

BBBBBBBBBB2
JavaScript $("div.accordian").accordion({ autoHeight: false, collapsible: true, active: false }); Link to example: http://jsfiddle.net/SmFdt/1/

Related questions

0 votes
    I have the following Javascript code which controls an accordion type set of divs. The set of divs is ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    Sarika is working on Writer for the first time. She does not have any reference book to read the features or ... to press plz help Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Create a nested list as follows using both ordered and unordered list tags: 1. Operating System o Disk operating ... Unix o Linux Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    List the advantages NumPy Arrays have over (nested) Python lists?...
asked Apr 24, 2021 in Technology by JackTerrance
0 votes
    _____is the sub-field of AI that is focused on enabling computers to understand and process human languages. a) ... d) Data Sciences Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    I am building a basic RSS reader app that, which the 'story' is clicked, the information for it is displayed in a modal ... .log('Does Not Work!'); Or another way: - overscroll...
asked Jul 30, 2022 in Education by JackTerrance
0 votes
    i have an array of objects in [ { "country": "USA", "payment": [ { "paymentType": "Visa" ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    Using nested loop write a program to print the following pattern on the screen. 12345 23451 34512 45123 51234 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    State the appropriate concept for the given statement: Cases can be heard for the first time only in certain courts. Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Which of the following statement is incorrect regarding with first general elections in India? 1) Only 10% of ... were introduced Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    I am adding an background image to the Splash screen, but is not rendering the image. Sometime it load ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I have bit a problem. I need insert to Array only (example) first array, best field by field. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I need to know whether the following problem has been studied before: Let's have a directed acyclic graph ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
    A machine operates only when all of its three components function. The probabilities of the failures of the first, ... will fail? Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
0 votes
    Under first updater wins the system uses a __________ mechanism that applies only to updates. (a) ... Snapshot Isolation in chapter Concurrency Control of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
...