[jQuery] hide all other elements except the one selected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PHPstarter
    New Member
    • Jun 2009
    • 77

    [jQuery] hide all other elements except the one selected

    Hello!

    I'm trying to write a jquery function that can be used on a select tag and run when an onchange has occured.

    The idea is that the option elements have values of classnames, which the jquery script will show/hide depending on the value.

    I want to be able to .hide() all other elements in the list, except for the one selected, which should run .show(), but I am unable to get it working at all.


    Any ideas how to do this?

    Thanks
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    can you post what you have so far? so that we might follow and see where the problem might be?

    Comment

    Working...