Drop down menu selection

Results 1 to 2 of 2

Thread: Drop down menu selection

  1. #1
    Join Date
    Dec 1969

    Default Drop down menu selection

    I want to call a function when a value is selected from a drop down menu. How would I go about this? what I am trying to do is fill another drop down menu from a recordset depending on what the user selects in the first drop down menu. Can this be down and is calling a function to fill the second drop down menu the best way to go about this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Drop down menu selection

    Well, this is probably more advanced then just an HTML issue, but you can always use Javascripts onChange event handler. It works like this:<BR><BR>&#060;select name="mylist" onChange="myfunction(mylist.value);"&#062;<BR>&#06 0;option value="1"&#062;First&#060;/option&#062;<BR>&#060;option value="2"&#062;Second&#060;/option&#062;<BR>&#060;/select&#062;<BR><BR>Then you just make the function myfunction, and whatever choice they selected will be the passing value. So, if they choose First, then 1 would get passed to the function.<BR><BR>HTH,<BR>Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts