passing on object using jQuery
<p>Hi have the following function which works fine:</p>

<pre><code>        jQuery('.btnRemoveItem').click(function(obj){                
           jQuery(this).closest('li').fadeOut(400, function() { $(this).remove(); }); // This works
        });   
</code></pre>

<p>On this HTML code:</p>

<pre><code>&lt;li id="listItem_dsc_6440.jpg"&gt; 
    &lt;div class="buttonPanel"&gt;
        &lt;span title="Delete image" class="btnRemoveItem floatRight" id="dsc_6440.jpg"&gt; &lt;/span&gt;
    &lt;/div&gt;
&lt;/li&gt;
</code></pre>

<p>This fades down the list item, then removes it.<br>
Now I'm adding a <code>jQuery.post</code> and I need to put the fadeout / remove inside this .post</p>

<pre><code>        jQuery('.btnRemoveItem').click(function(obj){

            jQuery.post("wp-content/themes/storelocator/include/adm_gallery.php", { deleteImage: 'single', name: jQuery(this).attr('id') },
            function(data){
                if(data.status == 'deleted');
                {
                    jQuery(obj).closest('li').fadeOut(400, function() { $(this).remove(); });
                }
            }, "json");
         }); 
</code></pre>

<p>Of course, this doesn't work. I'm pretty sure it's because I don't know what <code>obj</code> is - and how I can use it. </p>

<p>Can anyone help me please?</p>
