JS - Ajax GET #js
$.ajax({
type: "GET",
url: lien
}).done(function(reponse){
var rep = $.parseJSON(reponse);
if(rep.success){
var loaded = '<span class="loaded">ajouté</span>';
$this.attr('href', "#");
$this.addClass('added');
$this.html(loaded).find('.loaded').delay(1500).fadeOut(1000);
}
});