[jQuery] select function change - filter
Hi,
I'm looking for some help building a filter function through
select (combobox) > something like this:
$("select").change(function () {
$("select option:selected").each(function () {...
I have different divs each with a class like "html", "flash",
"print". I created a combobox to select one of this classes >
<option value="all">ALL</option>
<option value="html">HTML</option>
...
Basically all divs are visible. Now if I select "html" all other
divs with the classes "flash" and "print" should fade out >
$(".flash,.print").fadeOut('slow');
and vice versa for all the others. When I select "ALL" all divs
should shown up.
Any ideas how to achive this functionality?
thanks
Tom