In my code, I read the hidden input value, which is actually an array object javascript
<input type="hidden" id="id_num" value="{{array_values}}">
But when I take it using jquery( $('#id_num").val()) its array string,
"['item1','item2','item3']"
therefore, I cannot repeat it. How do I convert to an array object javascriptso that I can iterate over the elements in the array?
source
share