jQuery: how to pass a variable into a selector
<p>I looked on here, but couldn't find anything that applies to what I am trying to do.  Here is my AJAX call, which is a click event for delete_item:</p>

<pre><code>$.ajax({
    type: 'POST',
    url: '&lt;?php echo site_url('channel_partners/cms/delete'); ?&gt;',
    data: 'article_id=' + article_id,
    dataType: 'json',
    cache: false, 
    success: function(data) {
         $('li').remove($(this).id);
    },
    error: function(xhr, status, error) {
        alert('Error occurred: ' + status); 
    }
});
</code></pre>

<p>It's the line with the remove call in it that's not working.  $(this).id correctly refers to the id of the li I am trying to remove.  I think my problem is my use of the remove call.  I think I have something wrong in the syntax, but I can't tell what.  I followed the API but they weren't as specific as this.  Can someone help?  Thanks.</p>

<p>Oh, my DOM looks like this:</p>

<pre><code>&lt;li id="26"&gt;&lt;a class="delete_item" ...&gt;&lt;/a&gt;&lt;li&gt;
</code></pre>
