VEERENDRA kUMAR

VEERENDRA kUMAR

  • NA
  • 204
  • 11.7k

it is possible to call function under ajax call.

Mar 16 2016 12:37 AM
please give the correct

$.ajax({ 
         url: "/Home/SaveDetailedInfo", 
        type: "POST",
        data: JSON.stringify({ 'Options': someData}),
        dataType: "json",     
        traditional: true, 
        contentType: "application/json; charset=utf-8",    
         success: function (data)
  }); 
 
 
the above marked content replaced by  
 
  data: function()
        

  function()
{
return ('Options': someData);
}
 
 


Answers (1)