Kalyani Shevale

Kalyani Shevale

  • NA
  • 3.2k
  • 712.3k

how to get array value in action

Dec 4 2018 12:37 AM
I have to Get data in the array in jquery through this data I want in MVC Action how to use??? 
  1. var quotations = [];  
  2.   
  3. $("#addquotation").click(function () {  
  4.         debugger;  
  5.         var data = {};  
  6.         var itemname = $("#itemname").val();  
  7.         var cost =parseFloat( $("#cost").val());  
  8.         var notes = $("#notes").val();  
  9.         var date = $("#date").val();  
  10.   
  11.   
  12.         data.Item = itemname;  
  13.         data.Cost = cost;  
  14.         data.Notes = notes;  
  15.         data.Date = date;  
  16.   
  17.         quotations.push(data);  
  18. )};  
 

Answers (3)