Results 1 to 2 of 2

Thread: Setting dropdown menus value

  1. #1

    Thread Starter
    Addicted Member BIOSTALL's Avatar
    Join Date
    Apr 2005
    Location
    Northampton, UK
    Posts
    180

    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

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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
  •  



Click Here to Expand Forum to Full Width