Solved

Activate jquery ui accordian on dropdownlist select

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)

743 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

12 Experts available now in Live!

Get 1:1 Help Now