kinetek
08-11-2003, 10:35 PM
i was wondering if it was possible to set a form field value with javascript. the problem is the form name has square brackets in it and this causes an error.
here is the code that i'm using to set the value:
document.cart_quantity.id[1].value = 'value';
is there a way around this?
here is the code that i'm using to set the value:
document.cart_quantity.id[1].value = 'value';
is there a way around this?