1
Answer

it is possible to call function under ajax call.

VEERENDRA kUMAR

VEERENDRA kUMAR

7y
502
1
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)