Already solved but I thought it would be fun to solve it by hand :D

jQuery.fn.getDDs = function(){
    var next = $(this[this.length-1]).next();
    if(next.is('dd')){
        return this.add(next).getDDs();
    } else { return this.not('dt'); };
};

this is a bit faster:

jQuery.fn.getDDs = function(){
    var nextDT;
    this.siblings('dd').each(function(i){
        if( $(this).next().is('dt') ) { nextDT=i+1; return false };
    });
    return this.nextAll('dd:lt('+nextDT+')');
};

$('dt:eq(0)').getDDs();

- ricardo

On Oct 13, 5:59 pm, "Mauricio \(Maujor\) Samy Silva"
<[EMAIL PROTECTED]> wrote:
> @Paperboy:
> Sorry, both solutions you pointed out selects ALL dd after the dt clicked. 
> Tks!
>
> @Karl:
> The plugin you pointed out do the job. Tks!
>
> Maurício

Reply via email to