autocomplete array push problem
I want to add another arrayitem using array.push()
But it's not working.
I am adding this code onsuucess event of autocomplete service.
arr = new Array();
$(data).each(function()
{ arr.push($(this)[0].SchemeName);
});
localStorage.setItem("mySuggestions", JSON.stringify(arr));
above code working perfectly..for 1 value retrive in array
arr = new Array();
$(data).each(function()
{ arr.push($(this)[0].SchemeName,$(this[1].id);
});
localStorage.setItem("mySuggestions", JSON.stringify(arr));
I used this code but not reflacting.What i want to do to get multiple value.??