SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    On change event dropdown list

    I am creating a page in classic asp and trying to show or hide a textbox field if the user chooses a certain item from a dropdown list. I have implemented the code but it only works the first time you change the dropdown list. If I go back to change the dropdown list again the onchange event will not fire again. For example, I choose something from dropdownlist and my text box shows up so the onchange event worked the first time but if I go back and change the dropdown list again the textbox does not disappear. Any ideas?? Thanks!

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    How are you showing/hiding the checkbox? Javascript? If yes then you're in the wrong forum, but I'd suspect something is going wrong with the script and stopping scripting - the onchange event is an event and should fire everytime, but if scripting has failed then it won't do anything.

    Which browser are you using for testing?
    Ian Anderson
    www.siteguru.co.uk

  3. #3
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will be easier to debug if you provide the code as well. Thanks!


Bookmarks

Posting Permissions

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