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
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
Comment