winform win8 js checkbox互动

 

//win8 
function CheckClick(obj) { var name = obj.name; var str = document.getElementsByName(name); str.name=obj.name; if (str[0].checked == true) { obj.value="on"; } else { obj.value="off"; } } 
//winform 
function CheckClick(obj) { var name = obj.name; var str = document.getElementsByName(name); str.name=obj.name; if (str[0].checked == true) { str.value="on"; } else { str.value="off"; } }

 

posted on 2014-02-27 12:19  酒歌  阅读(169)  评论(0编辑  收藏  举报