jquery mojo accordion default pane

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/17/2010 10:08:29 AM
Gravatar
Total Posts 190

jquery mojo accordion default pane

Hi All,

I'm trying to have the second pane in the accordion be the default like this:

<script type="text/javascript" defer="defer">
$(document).ready(function() {
$('.mojo-accordion-nh').activate(1);
});
</script>
 

with not success. I keep getting "object doesn't support this property..." Using the "defer" attribute, I notice that in view the source of the page that the script does appear to be at the bottom of the page after the the .accordion() method has been called, but it still doesn't seem to working. Anyone have any luck with something like this?

Thanks,

John

1/18/2010 7:43:08 AM
Gravatar
Total Posts 190

Re: jquery mojo accordion default pane

I guess this should have been posted on a jquery forum, but I found the answer. My first attempt was from some example I found somewhere and apparently was a mistake. This I found on the jquery ui site:

.accordion('activate', 1);

This seems to do the trick.

You must sign in to post in the forums. This thread is closed to new posts.