#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    North Vancouver, BC
    Posts
    9
    Rep Power
    0

    need css box to close on select box onChange


    Hi all,

    I'm trying to get a pop up css based box (onClick is from an image) to display="none" when a user selects a value from a select box. I have a close link in the pop up, but I've been told that's not good enough.....

    I have been trying to get the onChange handler to work, but I can't seem to find the right way to access it properly..

    If anyone has done something similar, can you please send me your code snippet or direct me to a tutorial that explains how to do this? I'm new to javascript so please be gentle. Oh I guess I should mention that there are around 100 of these boxes and the div id is being created dynamically with ColdFusion....

    Thanks!

    Dave
  2. #2
  3. Button Masher
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    74
    Rep Power
    11
    Is it just that the onChange isn't working?

    Test it like this:

    <select onChange="alert('it works');">
    <!-- your options -->
    </select>
    Snib

    <><

IMN logo majestic logo threadwatch logo seochat tools logo