Selecting DDs in DL until next DT
Hi jquery-fans,
this is where I'm stuck:
-
$('dl.message-block dt').click(function () {
$(this).nextAll('dd').addClass('red');
$(this).toggleClass("toggle");
});
...selects all DDs of the definition list, but I only want to select the items after the corresponding DT until the next DT.
Many thanks in advance!