How to execute Ajax code when I click on the link?
<p>I can't figure out where the problem is :</p>

<p>here is the script :</p>

<pre><code>&lt;script&gt;
$(".icross").click(function(e){
    e.preventDefault();

    var obj = $(this);

    $.ajax({
     type: "GET",
     url: "supprimer.php",
     data: 'id=' + obj.attr('rel')



success: function(html){  

},

});
&lt;/script&gt;
</code></pre>

<p>and here is the html code associated :</p>

<pre><code>&lt;a href="#" class="icross" title="Supprimer" rel="80"&gt;&lt;i class="fa fa-times"&gt;&lt;/i&gt;&lt;/a&gt;
</code></pre>

<p>I want ajax to execute supprimer.php?id=80 when I click on the link but it doesn't work.</p>