[jQuery] Re: help fix syntax

2010-01-07 Thread runrunforest
Thanks for help, with your suggestion, I made it work.

[jQuery] Re: help fix syntax

2010-01-07 Thread runrunforest
Im trying to remove parent of at the click event, and the function remove needs to be within the if statement.

[jQuery] Re: help fix syntax

2010-01-07 Thread MorningZ
When you make an AJAX call, what "this" references changes $('a.del').click(function() { var $parent = this.parent(); //i assume you want the parent of the $.post('/img/del.php') , {'img': img }, function(){ if (e.status == 'deleted') { //