Setting dropdown menus value
Hi, i'm trying to set a dropdown menus value on page load by doing this:
document.formedit.gigday.value = "<?php echo $gigday ?>";
I've echoed $gigday and it does contain a value but the menus value is not changing. When I view the javascript error it says "'document.formedit.gigday' is null or not an object". I cant figure out why its not being set.
Anyone got any suggestions please?? thanks :) BIOSTALL
Re: Setting dropdown menus value
prolly the name of your dropdown menu is not gigday. :(
perhaps it is just an id.
or if it is, then... when is this code executed, I am assuming the assignment is in the script.