title: How to return data from controller method to a jquery ajax post
body: <p>My Jquery ajax call - </p>
  
  <pre><code>         var formdata = $('#emailrequest').serializeArray();
  
            // Ajax call to server
            $.ajax({
                url: sitePath + 'supply-chain-pressure/ProcessEmailrequest',
                type: 'POST',
                data: formdata,
                sucess: function(data) {
                    alert(data.sucess);
                },
                error: function() {
                    alert('error');
                }
                });//End Ajax
  </code></pre>
  
  <p>My controller - </p>
  
  <pre><code>    public ActionResult ProcessEmailrequest()
              {
  
                // some code
  
              // retun the response 
              return Json(new {success = true});
  </code></pre>
  
  <p>But all is get is error in alert . Where am I going wrong? Please help . I just need to return a confimation from controller , be it any format.</p>