I can't figure out where the problem is :
here is the script :
<script>
$(".icross").click(function(e){
e.preventDefault();
var obj = $(this);
$.ajax({
type: "GET",
url: "supprimer.php",
data: 'id=' + obj.attr('rel')
success: function(html){
},
});
</script>
and here is the html code associated :
<a href="#" class="icross" title="Supprimer" rel="80"><i class="fa fa-times"></i></a>
I want ajax to execute supprimer.php?id=80 when I click on the link but it doesn't work.
data: 'id=' + obj.attr('rel')