I have two Javascript arrays of same size
var demo=new Array(); var demo3=new Array();
I need to access the value of the two array in one e
Try using .concat if you want to joint iterate..
.concat
$.each(demo.concat(demo3), function (idx, el) { alert(el); });
else simply iterate the array and use the index to access next..
$.each(demo, function (idx, el) { alert(el); alert(demo3[idx]); });