title: how to send string through mvc form parameter
body: <p>I have this form- </p>
  
  <pre><code>@using (Html.BeginForm("SaveVideo", "Upload", FormMethod.Post, new { id = "form-upload", @Class = "form-horizontal", enctype = "multipart/form-data", onsubmit = "return tags()", genres = "return genres()" }))
  {
  }
  </code></pre>
  
  <p>where on form submit I will need to send strings seperated by comma.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function genres() {
          var genres = $('#input-genreautocomplete').val();
          return genres;
      }
  
      function tags() {
          var tags = $('#input-tagautocomplete').val();
          return tags;
      &lt;/script&gt;
  </code></pre>
  
  <p>Now as an example genre would be like- <code>23,15,16,22,11</code> as same as tags is. It return me string seperated by comma.</p>
  
  <p>Now I want to use these strings in my method <code>SaveVideo</code> . But I can't get these strings working as parameters. How Do I send these strings on method?</p>
  
  <p><strong>Autocompletes working like this-</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $(function () {
  
          $('#input-tagautocomplete').tagsinput({
              itemValue: 'Id',
              itemText: 'TagName',
              typeahead: {
                  source: function (term, process) {
                      items = [];
                      map = {};
                      idofitem = [];
                      var url = "@Url.Content("~/Upload/GetTagNames/")";
                      return $.getJSON(url, { term: term }, function (data) {
                          $.each(data, function (i, item) {
                              map[item] = item;
                              items.push(item.TagName);
  
                          });
                          return (items);
                      });
                  },
                  updater: function (item) {
                      var selected = map[item].Id;
                      $('#tag-value').val(selected);
                      return item;
                  }
              }
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Where updater is not working, though it's bootstrap's typeahead's extension.</p>