www.webdeveloper.com
Results 1 to 5 of 5

Thread: accordion menu active

  1. #1
    Join Date
    Aug 2008
    Posts
    23

    accordion menu active

    hope someone can shed some light on this,

    need to make the the 3rd header from the top become active. the script works on the first child receives the active state.

    you can view the entire thing:

    http://www.corneliodesign.com/menu.html

    here's the documentation that came with it but it was very confusing:

    http://docs.jquery.com/UI/Accordion


    thank you for your help
    julio
    Last edited by juju360; 05-15-2009 at 02:06 PM. Reason: make header more specific

  2. #2
    Join Date
    Apr 2009
    Posts
    4

    try this

    It would help to see your code, but going off of the documentation, you should be able to do:

    Code:
    $('.selector').accordion({ active: 2 });
    I'm guessing what you have right now is just :
    Code:
    $('.selector').accordion( );
    *EDIT* Just tested and this seemed to work fine for me.

    Hope this helps.

    -Frank
    Last edited by phrank80; 05-15-2009 at 04:35 PM.

  3. #3
    Join Date
    Aug 2008
    Posts
    23

    help me find where you place that line of code

    thank you my friend but i don't see where:
    $('.selector').accordion( );
    is at in the script:

    this code:
    $('.selector').accordion({ active: 2 });
    is what the documentation is suggesting but i don't know exactly where to put it.

    here is the page: http://www.corneliodesign.com/menu.html

    here is all scripts:
    http://www.corneliodesign.com/NewGSA/jquery.js
    http://www.corneliodesign.com/NewGSA...y.accordion.js
    http://www.corneliodesign.com/NewGSA/accordion.js

    your help is highly appreciated

  4. #4
    Join Date
    Apr 2009
    Posts
    4

    check...

    In http://www.corneliodesign.com/NewGSA/accordion.js

    I _think_ you want to change this part:

    Code:
    jQuery().ready(function(){
    		// simple accordion
    		jQuery('#list1a').accordion();
    		jQuery('#list1b').accordion({
    			autoheight: false
    		});
    If you look at your code it looks like the part you need to change is the the list1b accordion

    try changing it to:

    Code:
    jQuery().ready(function(){
    		// simple accordion
    		jQuery('#list1a').accordion();
    		jQuery('#list1b').accordion({
    			autoheight: false,
                            active: 2
    		});
    I hope that works out for ya

  5. #5
    Join Date
    Aug 2008
    Posts
    23

    got error in ie

    all headers got closed. when i click they open up in FF, but ie game me an error

    this supposed to be simple. the damn document is no help.

    but i thank you for your help my friend
    julio

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles