I have this inputs with non-numeric indexes with jQuery:
<input name="attributes['index1']" class="text_inputs" />
<input name="attributes['index2']" class="text_inputs" />
<input name="attributes['index3']" class="text_inputs" />
and this jquery code:
var attrs = new Array();
$.map( $('input.text_inputs'), function(obj, idx) {
attrs['here_the_index_from_input'] = obj.value;
});
So I want to add each index from inputs to attrs array index. Thanks in advance!
'here_the_index_from_input'mean, for example,'index1','index2', and'index3'?