Using $this within $.ajax inside a function of success
<p>When I use the line below, $(this) inside my jQuery function (example below) it works great.</p>

<pre><code>$(this).closest('.item').children('h3').children('a').text('UPDATED');
</code></pre>

<p>However, inside the same function I try to then move it within a function of success: area of $.ajax and it no longer works. I've checked that the success function works with an alert.</p>

<p>Is there a way to preserve the scope of $(this) inside $.ajax?</p>

<p>Thanks in advance for any suggestions.</p>

<p>Problem area:</p>

<pre><code>success : function(msg){
$(this).closest('.item').children('h3').children('a').text('UPDATED');
},
</code></pre>
