How to check a checkbox

Ads
 

How to check a checkbox

View Answers

May 8, 2008 at 6:44 PM

Hi friend,

<html>
<head>
<title>my checkbox example</title>
</head>
<body>
<table border="1">
<form name="myform" method="POST">
<div align="center"><br>
<input type="checkbox" name="option1" value="Java"> Java<br>
<input type="checkbox" name="option2" value="JDBC" checked> JDBC<br>
<input type="checkbox" name="option3" value="JavaScript"> Hibernate<br>
<input type="checkbox" name="option4" value="jsp"> JSP<br>
<input type="checkbox" name="option5" value="Servlets">Servlets<br>
<input type="checkbox" name="option6" value="Struts">Struts<br>
<br>
</div>
</form>
</table>
</body>
</html>

---------------------------

May 8, 2008 at 7:37 PM

Thanks for this code snippet.
I meant setting the checked attribute of a checkbox to true/checked when using the <form:checkbox....></form:checkbox> tags. By the way, is there another way of setting the checking a checkbox other than just leaving that attribute away?

Ads









Related Tutorials/Questions & Answers:
How to change the checkbox value dynamically.
How to change the checkbox value dynamically.  Hi, I am using struts 1.2 checkbox tag. Requirement is on page load the value must be "true"(checked). And after loading the page i am uncheking the check box and again loading
how to get the checkbox value in jsp
how to get the checkbox value in jsp  how to get the checkbox value in jsp?   JSP CheckBox Example - how to get the checkbox value in jsp
Advertisements
How to iterate over a checkbox group
How to iterate over a checkbox group  Hi. I am new to using JQuery... is to have a user check, say, "A" in MASTER and this causes the "A" checkbox... checkbox groups. Each of these groups consist of multiple checkboxes. The first
how to update checkbox list in database
how to update checkbox list in database  Issues: i am using different checkboxs for getting role then all role list store in one string array i want to update one by one but it's not updating by using below code .it's not adding
how to retrieve a checkbox value(retrieve from DB)
how to retrieve a checkbox value(retrieve from DB)   I facing a problem with checkbox value that already exists inside the database. so how can I...="checkbox" class="dissable" onclick="check();" name="UPSR" value="UPSR_ENGLISH" id
checkbox
checkbox  how to insert multiple values in database by using checkbox in jsp
how to insert checkbox value into database using jsp
how to insert checkbox value into database using jsp  how to insert check box value to the database using jsp my code is <link href...; <td align="center"> <input type="checkbox
how to insert checkbox value into database using jsp
how to insert checkbox value into database using jsp  How to insert check box value to the oracle database using jsp? I want to create hotel's... for="pack_meal"></label> <input type="checkbox
how to insert checkbox value into database using jsp
how to insert checkbox value into database using jsp  How to insert check box value to the oracle database using jsp? I want to create hotel's...; <input type="checkbox" name="pack_meal" id
how to insert check box
how to insert check box   how to insert check box into jtable row in swing
how to check gremlin version
how to check gremlin version  Hi, I am inside gremlin console and want to check the version. How to check gremlin version? thanks   Hi, On the gremlin console you can run following command: gremlin>
How to check spark version
How to check spark version  Hi, How can I find which version of Apache Spark is running on my environment? How to check spark version? Thanks   Hi, You can login to your box where apache spark is running then run
How to check spark version
How to check spark version  Hi, How can I find which version of Apache Spark is running on my environment? How to check spark version? Thanks   Hi, You can login to your box where apache spark is running then run
How to check if a pid is alive?
How to check if a pid is alive?  Hi, I have a process which is running in background and I want a simple command to find if the process id still running? How to check if a pid is alive? Thanks   HI, You can use
Checkbox method
Checkbox method  what is the method to check if the checkbox is checked
How to check keras version in anaconda
How to check keras version in anaconda  Hi, I have installed anaconda python for machine learning in my computer. Now I want to know which version... of keras library installed? How to check keras version in anaconda? Thanks
How to check Hadoop version in Ubuntu?
How to check Hadoop version in Ubuntu?  Hi, I am trying various... to Hadoop cluster through ssh terminal. How to check Hadoop version in Ubuntu? Thanks   Hi, Its easy to check the version of Hadoop in Ubuntu. type
how to check a remote applications validity
how to check a remote applications validity  i am developing a network application to avoid unauthorized access to a port .. for that i need to get the application id . how to get the appln id of an appln. or is there any way
checkbox value in php
checkbox value in php  In my HTML,PHP form ..we have a check box that is working fine. But anyhow i am not able to get the value of it. Can anyone suggest how to get the value of checkbox in PHP
how to check the size of a tar file in linux
how to check the size of a tar file in linux  Hi, I want to check the size of tar file in Linux. How to check the size of a tar file in linux? What Linux command I should use to check the size of a tar file? Thanks
how to add components (like button , checkbox etc) in a table column in core java
how to add components (like button , checkbox etc) in a table column in core java  plz tell me how to add components(like button, checkbox, radiobutton etc)in a table column in core java
How to check text in textbox using JavaScript
How to check text in textbox using JavaScript  How to check text... qestion is that is it possible to check text feilds for text or null value. I want... me.   JavaScript validation example to check text in textfeild <
jQuery Multiple Checkbox Select / Deselect
); }); // if all checkbox are selected, check the selectall checkbox... how to create multiple checkbox group which select/deselect the group...); }); // if all checkbox are selected, check the selectall checkbox
How to check if an arraylist contains a value in Java
How to check if an arraylist contains a value in Java  Hi, I have an array list object in Java with few values. I want to check if it contains... to do this? How to check if an arraylist contains a value in Java? Thanks  
How to check CentOS version via command line?
How to check CentOS version via command line?  Hi, I have a linux machine and i don't know the version of the CentOS operating system installed... system installed on it. How to check CentOS version via command line? Thanks
enable disable checkbox in javascript
enable disable checkbox in javascript  How to enable disable checkbox in javascript
refresh checkbox jframe
refresh checkbox jframe  How to refresh checkbox button in JFrame
UIButton checkbox
UIButton checkbox  iPhone UIButton checkbox example required.. can any one please explain me.. how to create a checkbox button using UIButton in XIB
how to check and print the no of times an integer is repeated in an array
how to check and print the no of times an integer is repeated in an array  how to check and print the no of times an integer is repeated in an array??? suppose my input is 2 4 2 5 2 4 3 4 5 2 then my output should be 2-4
Learn about JSP CheckBox
Learn JSP CheckBox The tutorial highlight the features by whihc you will be able to know what is JSP checkbox and also how it works in creating a checkbox... from multiple checkbox and also print the userdefined message that specify
How to check if a string contains a substring in iOS?
on the 'Check If Exists' button application will find the string and show... is the video explanation of the tutorial which teaches you how to run the example code... have learned how to find it a string contains in the source string. Download

Ads