Nic*_*ool -1 javascript php checkbox post submit
什么是代码,如果我有复选框,并选择它(没有任何提交按钮)显示我提交按钮
<html>
<head>
<title>test</title>
<form method="post">
<?php
//what will be the code here?
?>
<input type='checkbox' name='cb'>
</form>
</html>
Run Code Online (Sandbox Code Playgroud)
小智 5
如果没有Javascript,根本无法做到.用Javascript?
简单,快速,甜美,平易近人
<script>
function openinput() {
document.getElementById('submit').style.visibility = "visible";
}
</script>
<form>
<input type="checkbox" onclick="openinput()" />
<input type="submit" id="submit" value="go" style="visibility: hidden" />
</form>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
910 次 |
| 最近记录: |