[jQuery] Re: help fix syntax
Thanks for help, with your suggestion, I made it work.
[jQuery] Re: help fix syntax
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
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') { //