Solved

Activate jquery ui accordian on dropdownlist select

Posted on 2013-01-07
5
293 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

773 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