Home  >  Article  >  Backend Development  >  如何判断一个checkbox已选

如何判断一个checkbox已选

WBOY
WBOYOriginal
2016-06-13 10:52:11962browse

怎么判断一个checkbox已选?

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><input type="checkbox" onclick="selectAll()" id="choose_all" value="<?php if?> checked==" checked echo>">全选

我要取value的值,要求已选的时候是0,否则为空。上面的写法不对,求改正!

------解决方案--------------------
仿照着这个写就好了
checkbox解决方法
html
个人咨询

客户咨询

服务的咨询

其他咨询 

php
$zixun1 = $_POST["zixun1"];
for($i=0;$iecho $zixun1[$i]."
"
?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn