I have a list of tags which all get added to a hidden input with name=”item[tags][]”
<input type="hidden" style="display:none;" value="first" name="item[tags][]">
<input type="hidden" style="display:none;" value="second" name="item[tags][]">
<input type="hidden" style="display:none;" value="third" name="item[tags][]">
How could i combine those hidden inputs to output
var tag_filter = first,second,third;
You can use name selector to access the input elements and use map function along with get and join to get the comma separated list of values.
Live Demo