函数:
[php]function on_hide(){
document.getElementById("hide").style.display = (document.getElementById("checkbox").checked == true) ? "block" : "none";
document.getElementById("hide1").style.display = (document.getElementById("checkbox").checked == true) ? "block" : "none";
}[/php]文章源自陈学虎-https://chenxuehu.com/article/2013/08/1320.html
应用:文章源自陈学虎-https://chenxuehu.com/article/2013/08/1320.html
[php]<input type="password" name="todopass" id="hide" style="display:none;" value="<?php echo $rs['tk_user_backup4'] ?>"/>
<input type="submit" value="更新" id="hide1" style="display:none;" />[/php]文章源自陈学虎-https://chenxuehu.com/article/2013/08/1320.html
文章源自陈学虎-https://chenxuehu.com/article/2013/08/1320.html
评论