how to check or uncheck a checkbox by click on the text near it?(html)
Friday, August 10th, 2007Here is the code to do that Example for checking a checkbox by the text near
| <label for=”php”><input name=”php” id=”php” value=”open” checked=”checked” type=”checkbox”>click here for php
</label> <label for=”asp”> <input name=”asp” id=”asp” value=”open” checked=”checked” type=”checkbox”>click here for asp </label> <label for=”css”> <input name=”css” id=”css” value=”open” checked=”checked” type=”checkbox”>click here for css </label> |
When Compiled output will be as shown below
Posted by Suresh B