title: How do I pass Bootstrap-tags input as an array to a form?
body: <p>I need to pass an array to a form based on what is returned from bootstrap-tags input. I have followed the documentation to try and retrieve the array using the following code:</p>
  
  <pre><code>&lt;form&gt;
    &lt;input type="text" name = "language" value="Javascript,Ruby" id = "languages" data-role="tagsinput" /&gt;
    &lt;input type='hidden' name='languages_hidden[]' id = "languages_hidden" value='' /&gt;
    &lt;input name="save" onclick="mySubmit()" type="submit" value="Save"&gt;
  &lt;/form&gt;
  &lt;script&gt; 
   function mySubmit() {
   document.getElementById('skills_hidden').value = $("#skills").tagsinput('items')
   }
  &lt;/script&gt;
  </code></pre>
  
  <p>I expect the resulting array that is passed on to be in the format when I click the submit button:</p>
  
  <pre><code>["Javascript", "Ruby"]
  </code></pre>
  
  <p>However, I see that that is actually how the array is passed on:</p>
  
  <pre><code>["Javascript, Ruby"]
  </code></pre>
  
  <p>How do i rectify this?</p>