|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
1) Script Title: Accordion Content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...enu-bullet.htm 3) Describe problem: Hey guys, I have a simple question for anyone that is familiar with how this awesome script works.. I am using this menu as a sub-menu for pages within a technical document. I'd like to set the defualt expanded List Item for each page individually based on an inline calls since the template I am using doesn't allow me to edit the universal "defaultexpanded" configuration script in the html header. Anyone know how I can get this done? Last edited by mmc215; 08-07-2008 at 10:48 PM. Reason: clarified description. |
|
#2
|
||||
|
||||
|
You can try calling ddaccordion.expandone() to specifically expand a header. In your case, since you want to do this automatically when the page loads, you should wrap it inside jQuery's DOM onload function:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
ddaccordion.expandone('expandable', 2) //expand 3rd header of Header Class "expandable"
})
</script>
__________________
DD Admin |
|
#3
|
|||
|
|||
|
Thanks! this works!
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|