get it, thx guys!
I this you want $(this).remove();
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Krommenaas
Sent: Monday, October 19, 2009 10:11 AM
To: jQuery (English)
Subject: [jQuery] this.remove
I was wondering why in a link's click event...
$
2009/10/19 Krommenaas :
>
> I was wondering why in a link's click event...
> $('a.').click( function() {
>
> this won't work...
> this.remove()
>
> but this does work...
> $('#'+this.id).remove();
>
> as will this...
> $('a[name='+this.name+']').remove();
>
> It's not a problem since I have
3 matches
Mail list logo