[jQuery] Re: this.remove

2009-10-19 Thread Krommenaas
get it, thx guys!

[jQuery] Re: this.remove

2009-10-19 Thread Smith, Allex
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... $

[jQuery] Re: this.remove

2009-10-19 Thread Nick Fitzsimons
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