Correct syntax :

$(".Dinner:checked").parent().parent().show();

$(".Dinner :checked") means ":checked items chidren of .dinner
elements" wich is not what you want

And remove that <center></center> thing PLEASE ! (use at least <td
style="text-align:center"> or write a css rule)

:)

On 13 juin, 03:53, Vik <[EMAIL PROTECTED]> wrote:
> I found a way to do it.
>
>          $("#Filter_Dropdown").change(function () {
>                 var str = "";
>                 var orig_str = "";
>                 orig_str = $("#Filter_Dropdown option:selected").text();
>                 str = '.' + orig_str;
>
>                 $(".food_planner tbody tr").show();
>                 if (str != '.Show All')
>                 {
>                         $(".food_planner tbody tr").hide();
>                         $("[EMAIL PROTECTED]" + orig_str +
> "]:checked").parent().parent().parent().show();
>                 }
>         });

Reply via email to