var keyVal = [];
for (var i = 0; i < itemname.length; i++)
{
keyVal.push({ itemname: itemname[i], itemqty: itemqty[i] });
}
solved Combining two arrays into one javascript json object
var keyVal = [];
for (var i = 0; i < itemname.length; i++)
{
keyVal.push({ itemname: itemname[i], itemqty: itemqty[i] });
}
solved Combining two arrays into one javascript json object