|
-
Sep 4th, 2005, 07:14 AM
#1
Thread Starter
Addicted Member
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
-
Sep 5th, 2005, 09:33 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|