February 17, 2009 jQueryを使った超シンプルなアコーディオンを作ってみました。#simpleAccordionを与えたdivの子要素であるh2をクリックするとその直後のdiv要素が開くと言うものです。 まずはデモをご覧下さい。 View Demo マークアップは次のようにします。 HTML Code <div id="simpleAccordion"> <h1>jQuery Simple Accordion</h1> <h2>Click This</h2> <div> <p>example text example text example text example text example text example text example text example text example text example text example text exampl