解決できない厄介な問題があります。
ネストされたdivがあり、ユーザーがリンクをクリックしたときに表示/非表示にします。一度にすべてのdiv。
divにIDを割り当てることができないため、クラスで割り当てる必要があります。
<a href="#" id="showhide">Show more</a>
<div class="more">
<div class="more1">
<h2>Some title</h2>
<p>Some text</p>
</div>
<div class="more2">
<h2>Some title</h2>
<p>Some text</p>
</div>
<div class="more3">
<h2>Some title</h2>
<p>Some text</p>
</div>
</div>
これが私のhtml構造のフィドルです。 http://jsfiddle.net/56jdL/1/
ありがとう!