• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Activate jquery ui accordian on dropdownlist select

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
Paulmc999
Asked:
Paulmc999
  • 3
  • 2
2 Solutions
 
MrunalCommented:
hi
this is not optimized code but can help you.

http://jsfiddle.net/mycbz/

Let us know if you are done with this.
0
 
Paulmc999Author Commented:
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
 
MrunalCommented:
.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
 
Paulmc999Author Commented:
I resolved this by calling javascript to change the CSS Class so DIV is selected or deselected
0
 
Paulmc999Author Commented:
MRoonal's solution got me thinking and I used my own javascript instead of jquery accordian
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now