10
rated 0 times
[
17]
[
7]
/ answers: 1 / hits: 27149
/ 13 Years ago, fri, january 13, 2012, 12:00:00
Say I have an array such as this in Javascript:
var cars = { vendor: [ { type: [ 'camry', 'etc' ] } ] }
In Javascript what command can I use to add an item to type... For example if I wanted to have a text box that a user can place text into and then hit a button that will add the item into the array. The item that would be added would need to be placed in with the same items as camry and etc. Thanks!
More From » arrays