Skip to main content
Known Participant
June 24, 2010
Question

<cfselect>

  • June 24, 2010
  • 2 replies
  • 383 views

I have a drop down (<cfselect>) in my page, I would like to show information related to each one that user choose from the drop down. (right at the bottom of the drop down not going to the next page by the onchange of the drop down, any guild on that?

(My drop down value and also the other information that I am try to show comes from Database)

Thanks.

    This topic has been closed for replies.

    2 replies

    Inspiring
    June 24, 2010

    If you are on a high enough version of CF, there is a tooltip tag.

    Participating Frequently
    June 24, 2010

    I am not sure if I am missing something in your post, however, use a javascript function in the onchange event to display whatever it is you want to play based on the selection.

    In the past, I had loaded the items of information for a <cfselect> drop down pick list in the cfm code on creation of the page. I also loaded associated information with the items in the list into an array.  Each time the user made a selection from the pick list, my javascript would parse through the array and find the appropriate information that matches to the selection and would display it on the page.

    I am not sure if that is what you were looking for, but it sure works.

    Best of luck.