By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

[jQuery] hide all other elements except the one selected

P: 77
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
Jun 13 '12 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,390
can you post what you have so far? so that we might follow and see where the problem might be?
Jul 20 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.