title: remove the outer double quotes for a string (as to convert it to an array)
body: <p>I am working with javascript and i am struck at a point. I am getting a value from a hidden field to js:</p>
  
  <pre><code>&lt;input type="hidden" value='&lt;%= value%&gt;' id="value1"/&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>var getValue = document.getElementById('value1').value;
  </code></pre>
  
  <p>here i get the value as : <code>"["1","2"]"</code>.</p>
  
  <p>Instead of a string, i want it as an array here just by removing the outer double quotes so that i can directly use that as an array here. So i want the output like : <code>["1","2"]</code>(just removing the outer double quotes which represents its a string). Can anyone suggest how to get that?</p>