<script> $("select[name=selectmenu1]").change(function(){ var id=$("option:selected",this).attr("id"); if(id=="ac"){ $("#tab").show(); }else if(id=="kapa"){ $("#tab").hide(); } }); </script