单选按钮的显示与隐藏列项

$(function(){
$("#fjgs").live("change",function(){//fjgs 单选按钮id
var fjgs = $(this).val();
if(fjgs == "Y"){
document.getElementById("sanzheng1").style.display="none";

document.getElementById("heyi").style.display="";
}else{
document.getElementById("sanzheng1").style.display="";

document.getElementById("heyi").style.display="none";

}
});
});
posted @ 2016-12-02 16:45  caozengling  阅读(1449)  评论(0编辑  收藏  举报