我想根据幻灯片打开一些DIV使用jQuery UI。我希望链接位于其他地方,并根据其ID来定位特定的DIV。我会如何去做这件事?任何提示指向我在正确的方向?jQuery手风琴问题
东西的排序是这样的:
<script>
jQuery().ready(function() {
jQuery("#accordion").accordion({
collapsible: true,
active: false,
navigation: true
});
});
</script>
和:
<h3><a href="#1">Section 1</a></h3>
<h3><a href="#2">Section 2</a></h3>
<h3><a href="#3">Section 3</a></h3>
<h3><a href="#4">Section 4</a></h3>
<div id="accordion">
<div id="1">
<p>content</p>
</div>
<div id="2">
<p>content</p>
</div>
<div id="3">
<p>content</p>
</div>
<div id="4">
<p>content</p>
</div>
</div>
清洁解决方案比我的+1 – jcvandan 2011-05-26 15:42:34