Append result with ajax calling a php file
<p>I am using jQuery and ajax function to access a php file that echo yes or no depending on the value that is send thru POST. 
It checks the status of different urls.
The problem is I cannot append that result to the specific line (or even better to replace "status" with the response).
I have a table like this:</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;&lt;td&gt;URL1&lt;/td&gt;&lt;td&gt;&lt;a href="url1" class="status"&gt;status&lt;/a&gt;&lt;span class="result"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;URL2&lt;/td&gt;&lt;td&gt;&lt;a href="url2" class="status"&gt;status&lt;/a&gt;&lt;span class="result"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;URL3&lt;/td&gt;&lt;td&gt;&lt;a href="url3" class="status"&gt;status&lt;/a&gt;&lt;span class="result"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>And the jquery code is:</p>

<pre><code>(function($) {
    $(document).ready(function() {
        $('.status').click(function(event) {
        var href = $(this).attr('href');
        $.ajax({
            url: 'status.php',
            type: 'POST',
            data: 'href=' + href,
            succes: function(result) {              
                $('.result').append(result);
            }
        });
        return false;
        });
    });

})(jQuery);
</code></pre>

<p>I get the response but I cannot append it (or even better to replace "status" text with the response). 
Thank you.</p>
