Jump to content
Sign in to follow this  
derekraines

Trigger jQuery Script onClick from Navigation Menu

Recommended Posts

derekraines

I would like to trigger an on-page script from a clickable link using the "id" tag. An example of this would be

Navigation Menu Item[/code]

. How can I get this link into the navigation bar? I can place it in the body of the page anywhere and it works fine, but I don't know how to add the id tag to any links that are part of the Platform template.

Share this post


Link to post
Share on other sites
derekraines

Sorry, code got messed up. An example of a link I need to get into the navigation menu is `Navigation Link`

Share this post


Link to post
Share on other sites
cmunns

You are trying to append or inject an additional nav element after users click some other button? Do you have a sample jquery script that you tried already?

Share this post


Link to post
Share on other sites
derekraines

Adam - I'm trying to trigger a lightbox (Fancybox) from a nagivation menu link. The code is located at www.fancybox.net and I want to load an iframe when a visitor clicks on a certain link in the navigation menu.

Share this post


Link to post
Share on other sites
derekraines

Thanks Bryan - that's exactly what I was looking for!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×