87,992
社区成员
发帖
与我相关
我的任务
分享<script type="text/javascript" src="jquery.js"></script>
<select id="type">
<option value="a" selected>a</option>
<option value="MESSAGE">MESSAGE</option>
</select>
<table class="k-widget k-editor k-header" cellspacing="4" cellpadding="0" role="presentation" style="width: 740px; height: 440px;" border=1><tr><td>I am Table,If you chacked "MESSAGE" , I will hide!!</td></tr></table>
<script type="text/javascript">
$('#type').change(function(){
if($(this).val()=="MESSAGE") {
console.log($("table.k-widget"));
//alert($(" .k-widget k-editor k-header"));
$("table.k-widget").hide();
$("#megContent").show();
} else {
$("table.k-widget").show();
$("#megContent").hide();
}
});
</script>
$(".k-widget k-editor k-header")
这个是不对的
应该是
$(".k-widget.k-editor.k-header")