2011-09-12 30 views

回答

2

如果你想隐藏它,你可以使用JavaScript来隐藏样式添加到它。

function checkboxHandler() { 
    var el = document.getElementById('yourCheckBoxId'); 
    if(el.value){ 
     document.getElementById('sharePointId').setAttribute('style', 'display:none;'); 
    }else{ 
     document.getElementById('sharePointId').setAttribute('style', 'display:block;'); 
    } 
} 

如果你使用一个很好的JavaScript库,例如jQuery可以让这个代码更简单,并添加一些甜蜜的动画。