»
EnglishFrenchVietnamese

Print - Checkbox Text - JavaScriptBank.com

Full version: jsB@nk » Form » Checkbox » Checkbox Text
URL: https://www.javascriptbank.com/checkbox-text.html

Checkbox Text © JavaScriptBank.com(Internet Explorer Only) The user no longer needs to click precisely on the checkbox to check and uncheck it. Clicking the text after a checkbox can do this just like windows programs.

Full version: jsB@nk » Form » Checkbox » Checkbox Text
URL: https://www.javascriptbank.com/checkbox-text.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Original:  [email protected] --><!-- Modified by:  Ronnie T. Moore, Editor --><!-- Modified by:  Avi Kehat ([email protected]) --><!-- Beginfunction changeBox(cbox) {box = eval(cbox);box.checked = !box.checked;}//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name=demoform><input type=checkbox name=agreebox><a href="" onClick="changeBox('document.demoform.agreebox');return false">Clicking this text also checks the box to the left.</a></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->