Jump to content
01Moonlight

Link to html accordion panel

Recommended Posts

Give paragraph or span surrounding the word a id ref. Then give a link a href attribute a value to that id ref beginning with hash '#' href="#idrefvaluename"

Share this post


Link to post
Share on other sites

Hi Dsonesuk would that be something like <p><span id="firstlocaiton">My</span>the rest of my paragraph</p> Then where I want to link from: <a href="firstlocation">click here to see the first location</a>

Is this correct?

Share this post


Link to post
Share on other sites

With a hash at the beginning

	< a href="#firstlocation">click here to see the first location</a>
	

Obviously these have to be in the same accordian panel to work without JavaScript.

Share this post


Link to post
Share on other sites

That's the problem. I have the link in another page that needs to go to the accordion file. How can I do that? I've looked at some java script from other sites but it's either for bootstrap or an accordion created using js. 

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

×