Solved

Activate jquery ui accordian on dropdownlist select

Posted on 2013-01-07
5
287 Views
Last Modified: 2013-02-20
Can anyone help me, I want to activate jquery ui accordian and populate the div with different checkboxes depending on what is selected in the dropdownlist.

So for example

Dropdownlist - option1 will make a div appear with three checkboxes
                        - option2 will make a div appear with two different checkboxes
and so on

Thanks
0
Comment
Question by:Paulmc999
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 250 total points
ID: 38751108
hi
this is not optimized code but can help you.

http://jsfiddle.net/mycbz/

Let us know if you are done with this.
0
 
LVL 2

Author Comment

by:Paulmc999
ID: 38751861
Doesn't seem to work when I open this website in IE 9

Where does this statement get the 0 and 1 in .eq()?

$('#accordion').find('div').eq(1).html(newHTML);
0
 
LVL 22

Expert Comment

by:Mrunal
ID: 38753953
.eq() is nothing but sequence with indexing for DIV tag in TAG with id "accordion".

Can you please share your code so that I can you exact solution?
0
 
LVL 2

Assisted Solution

by:Paulmc999
Paulmc999 earned 0 total points
ID: 38894638
I resolved this by calling javascript to change the CSS Class so DIV is selected or deselected
0
 
LVL 2

Author Closing Comment

by:Paulmc999
ID: 38908712
MRoonal's solution got me thinking and I used my own javascript instead of jquery accordian
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now