On my page there are a lot of records. It is a requirement for them to be displayed on a single place. But to make it easier to navigate we will add an index div that points anchors to some category.
For example we have category A B C D E and under a category there are prod开发者_如何学JAVAucts of that category
How do you make in ASP.NET MVC (anchor) link that point to the category div?
You could use named anchors:
<a href="#categoryA">Jump to category A products</a>
and somewhere else on the same page:
<div>
<a name="categoryA">Category A products</a>
... some products here
</div>
The jQuery UI accordion is also worth checking out.
精彩评论