Results 1 to 3 of 3

Thread: get value from drop box??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta Canada
    Posts
    192

    get value from drop box??

    How do I simply pass the value of a dropbox in a query string:

    ie:
    Dropbox name: TAccomName

    This is the find button:

    <input type="button" onClick="location.href='resxaccomEdit.asp?intAccomID=<%=TAccomName%>'" value="Find" name="Find">

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

    Re: get value from drop box??

    how about just making a separate javascript function

    and access the dropdown value

    by document.aform.elements(TAccomName).value

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: get value from drop box??

    Specifically,

    Code:
    <script language="javascript">
    function goToLocation()
    {
    document.location.href = 'resxaccomEdit.asp?intAccomId=' + document.aform.elements(TAccomName).value
    }
    
    <input type="button" onClick="javascript:goToLocation();" value="Find" name="Find">

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