:have an ajax request looking like this :
$.ajax({
url: "/users/action/",
type: "POST",
data: myData,
context: this,
error: function () {},
success : function () {
$(this).removeClass('disabled');
}
});
So if the function is successfull, the class "disabled" is removed. However, my function returns the following json :
{"row":"fze684fz6f4ez68f4ze"}
I want to get this value so I can use it later "add it to a data element, i.e I want to add to the clicked element data-row="fze684fz6f4ez68f4ze"
How can I manage this ? I can't figure out by myself, I'm discovering AJAX.
Thanks a lot for your help !