主题 : 复选框前台展示 |
级别: 状元
![]() |
2# 发表于:2014-12-04 10:46:43 IP:115.214.*.*
<script> function checkform(){ var cbk = document.getElementById('cbk'); if(!cbk.checked){ alert('复选框未选中!'); return false; } return true; }</script><form onsubmit="return checkform()"> <input type="checkbox" name="cbk"/>复选框</form>
|
||
---|---|---|---|
1
共1页