Thursday, 6 March 2014

Javascript array value and name Push

Javascript array value and name Push
var objArray = new Array();
for(int i=0;i++;1<10)
{
var vId = i;
var vName = "MyName" +i;
}
objArray.push({ index: vId, value: vName });