目前下面的 jQuery 只会从 跳转Sport
到Entertainment
. div
有没有办法通过使用一段代码从任何到下一个?
<div id="topBar">
<span>
<a id='slink' class='trigger' href='#Sports'>Sport</a>
<a id='elink' class='trigger' href='#Entertainment'>Entertainment</a >
<a id='mlink' class='trigger' href='#Military'>Military</a>
<a id='mocklink' class='trigger' href='#MockUp'>MockUps</a>
<button>Next</button>
</span>
</div>
$("button").on('click', function() {
$('.triggered:First').next('.triggered').show()
});