单选框 change 事件 。 单选框点击事件,切换不同的table。

来源:互联网 发布:网络摄像机方案 编辑:程序博客网 时间:2024/06/16 14:14

jQuery change 事件 :


                $(function(){

$("input:radio[name:sheetType]").change(function(){

var v = $(this).val();

if (v =="1"){

$("table1").show();

$("table2").hide(); 

}else{

$("table1").hide();

$("table2").show();

}

});

          });


0 0
原创粉丝点击