how will i add another set of arrays and put it on the value of the option.
here is my dept array
var dept = ['dept1','dept2','dept3'];
$.each(dept, function(index, value){
$("#filter2").append($("<option>",{
value: value, //--this is where i should put the value of array dept_id
text: value
}));
i want to add my other array and put it inside the value of each option:
var dept_id = ['35', '36', '37'];