I have a landing page with links.
How can I direct user to a section of a different page?
Main Page:
<a href="/sample">Sushi</a>
<a href="/sample">BBQ</a>
Sample Page:
<div id='sushi'></div>
<div id='bbq'></div>
Clicking on "Sushi" or "BBQ" in the Main Page should navigate the user to the div with id sushi
or bbq
(respectively) of the page sample
.
Is it possible without JQuery?
I do not mind using JQuery but a simpler solution using html would work too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…