At least one error is here:

var e = $(this).parent()[0];

should be just

var e = $(this).parent();

You were converting the jQuery object to a DOM object then trying to
run jQuery methods on it.

David

On Dec 15, 2:04 am, Antonio Jozzolino <[EMAIL PROTECTED]>
wrote:
>         <div class="add-more">
>                 <label for="empresas_coligadas_ou_filiais" class="label-
> ecf">Empresas Coligadas ou Filiais</label>
>                 <input name="empresas_coligadas_ou_filiais" type="text"
> maxlength="255" />
>                 <span class="bt-more"></span>
>             <span class="bt-less"></span>
>         </div>
>
>         $('span.bt-more').bind('click', function(){
>             var e = $(this).parent()[0];
>                 e.parent().clone().after(e);
>         });
>
> Where is the error?
>
> Thanks.
>
> Antonio

Reply via email to