syntax a: not working, but its what I have in mind.

                        $('.del').click(function(e){
                                e.preventDefault();
                                $.post('<?= site_url('play/img/del') ?>',
                                                {ori: response.img_name , 
thumb: response.thumb_name },
                                                function(e){
                                                        if(e.status == 
'deleted') {$(this).parent().remove();}
                                                }, 'json');
                        });

syntax b: work but not doing thing correctly.

                        $('.del').click(function(e){
                                e.preventDefault();
                                $.post('<?= site_url('play/img/del') ?>',
                                                {ori: response.img_name , 
thumb: response.thumb_name },
                                                function(e){
                                                        if(e.status == 
'deleted') {}
                                                }, 'json');
                                $(this).parent().remove();
                        });

Reply via email to