Hello everyone, its been a while, but alas I am back, this time in the javascript section.
I just want to make sure I am doing everything right I keep getting tons of errors and I think it stems from how I set my drop-down menu.
The Page posts to itself with form number 3, so if certain conditions are met, the drop-down box needs to be set to "Gift Card" which is one of the options.
currently I am saying :
CODE
document.add_sale.paid_with.value = "Gift Card";
but that isnt really working at all, the error i'm getting on the page is:
Error: 'document.add_sale.paid_with' is null or not an object.
The form name is add_sale
The Dropdown name is paid_with
at one time i was using
CODE
document.add_sale.paid_with.option.value = "Gift Card";
but i dont think that was working either, much help would be appreciated!
Thanks,
Eric