JavaScript accordion behavior when it won’t expand – set an href?

I have a JavaScript accordion on this site that features within it, the primary functionality for the site. It is based off of this post.

When someone has JavaScript disabled or for whatever reason the panels aren’t expanding, is there a way to set it so that clicking on them will act as a traditional hyperlink?

That way users can still be directed to content that they need and the site isn’t “broken” for them.


You can use the noscript tag to provide content for those that have JS disabled. That should work no matter what plugin you’re using.

Read more:

So, basically, you can really go creative and build a separate menu for non-JS users.

Leave a Reply

Your email address will not be published. Required fields are marked *