點選文字啟用CheckBox的JavaScript

life66881發表於2015-03-30
<html>
<head>
<meta http-equiv="Content-Type" mrc="text/html; charset=gb2312">
<title>點選文字checkbox被啟用</title>
</head>
<script language="javascript">   
  function selectcheckbox()   
  {   
  document.form1.check1.checked=!document.form1.check1.checked;   
  }   
  </script>
<body>
<form name="form1" method="post">
<input type="checkbox" name="check1" value="0" style="cursor:hand" />
<a onclick="selectcheckbox()" style="cursor:hand">請點選我</a>
</form>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>

相關文章