title: Use Jquery ajax json response?
body: <p>:have an ajax request looking like this :</p>
  
  <pre><code>$.ajax({
            url: "/users/action/",
            type: "POST",
            data: myData,
            context: this,
            error: function () {},
            success : function () {
          $(this).removeClass('disabled');
            }
          });
  </code></pre>
  
  <p>So if the function is successfull, the class "disabled" is removed. However, my function returns the following json : </p>
  
  <pre><code>{"row":"fze684fz6f4ez68f4ze"}
  </code></pre>
  
  <p>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"</p>
  
  <p>How can I manage this ? I can't figure out by myself, I'm discovering AJAX.</p>
  
  <p>Thanks a lot for your help !</p>