Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multidimensional array push in jquery

var ItemArray = [];
ItemArray.push({
    RoomName : 'RoomName', 
    Item : []
});

ItemArray[0].Item.push("New Item");

console.log(ItemArray);
 
PREVIOUS NEXT
Tagged: #multidimensional #array #push #jquery
ADD COMMENT
Topic
Name
1+4 =