I have multiple hidden inputs with the name image_values:
<input class="imageValues<?=$category->cat_id;?>" name="image_values[]" type="hidden" value="<?=$step->img_pos.":".$option->image_path;?>" />
I want to iterate through each of them and store the values in an array, I am trying this below, but it isnt going inside the each at all, what am i doing wrong?:
var imageValues = '';
jQuery("input[name='image_values']").each(function(){
imageValues = jQuery(this).val();
});
Thanks