I'm having trouble pushing into an array within an object. What am I doing wrong?
Code:var table = { seats:{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null} } table.seats["1"].push("a","b","c"); alert(table.seats["1"]);
|
|
Results 1 to 1 of 1
Thread InformationUsers Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
|
Bookmarks