HTML: a definition list

<dl>
   <dt>Text 1</dt>
           <dd>text 1.1</dd>
           <dd>text 1.2</dd>
           <dd>text 1.3</dd>
           <dd>text 1.4</dd>
   <dt>Text 2</dt>
           <dd>text 2.1</dd>
           <dd>text 2.2</dd>
           <dd>text 2.3</dd>
           <dd>text 2.4</dd>
   ...more dt's dd's..
</dl>

jQuery script:

...
$('dt').click(function() {
   $(this).selector('dd').hide();
// ...more stuff
...

Are there a jQuery method to select all dd's for the dt clicked?
Say: If the click is on Text 1, only text1.1, text1.2,...,text1.4 are selected.

PS: Remeber, it's not allowed any element other than dd and dt within a dl list.



TIA
Mauricio


Reply via email to