I have an ajax function which has a success block. In this block I'd like to remove an element.
the success block contains the following :
success:function(data, textStatus, jqXHR) {
$("#comment +$data['post_id']").remove();
},
I got an error Syntax Error : unrecognized expression #comment +$data['post_id']
Where is the mistake ? how can I use the post_id contained in data ?
Thank in advance for your help