Link to open jQuery Accordion
Posted
by pioneer
on Stack Overflow
See other posts from Stack Overflow
or by pioneer
Published on 2009-02-25T21:43:08Z
Indexed on
2010/03/24
14:53 UTC
Read the original article
Hit count: 461
I'm trying to open an accordion div from an external link. I see the "navigation: true" option but I'm not sure how to implement it. Do you give each div an id and call the link like this? http://domain.com/link#anchorid
I'm new to jQuery so bear with me. Here is the code I'm using if it helps.
<script type="text/javascript">
$(function(){
$("#accordion").accordion({ header: "h2", autoHeight: false, animated: false, navigation: true });
});
</script>
<div id="accordion">
<div>
<h2><a href="#">Services</a></h2>
<div class="services">
<p>More information about all of these services</p>
</div>
</div>
© Stack Overflow or respective owner