M
Magoo
I am writing an app that has some lookup data in a mysql DB. I want to
use javascript to fill in the default values for 5 or 6 fields when the
user selects from a list.
I want to initialize an associative array with the default values. In
perl I'd do this:
my $inventory = )
{ ITEM => 1, NAME => 'Widget', COST => 3.99},
{ ITEM => 2, NAME => 'Dohicky', COST => 5.95{
);
How do I do that in javascript?
var inventory = new Array (
new Array ( ???????? ),
new Array ( ???????? )
);
use javascript to fill in the default values for 5 or 6 fields when the
user selects from a list.
I want to initialize an associative array with the default values. In
perl I'd do this:
my $inventory = )
{ ITEM => 1, NAME => 'Widget', COST => 3.99},
{ ITEM => 2, NAME => 'Dohicky', COST => 5.95{
);
How do I do that in javascript?
var inventory = new Array (
new Array ( ???????? ),
new Array ( ???????? )
);