title: Pass array to ajax request in $.ajax()
body: <p>I have tried like this but could not get array list. It returns 'null'</p>
  
  <pre><code> var data=[];
   data[0] = '1';
   data[1] = '2';
      $.ajax({                    
           url: '@Url.Action("AddFrequencyWeekly", "Plannar")',
           type: "POST",                     
           data: { data: data },
           dataType: 'json', 
           success: function (data) {                                            
               alert("Record Updated Successfully");    
                   }
           });
  </code></pre>
  
  <p>my model class code following</p>
  
  <pre><code> public JsonResult AddFrequencyWeekly(string[] data)
          {
  
  }
  </code></pre>
  
  <p><strong>data value says 'null'</strong></p>
  
  <p>please help me?</p>