Development| HTML| JavaScript| Questions?

Hot Searches
struts-config.xml  web.xml  Java date format  read/write text file using javascript  ArrayList  Insert Data into Database Using Hibernat  create text file using java  insert data to text file using java  Visual Basic Date and Time Display the t  Create table and insert data by sql quer 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Check Box in HTML

                         

Checkbox is used in html when a users want to select more than one or more option from a set of alternatives. If a user wants to select only one option, user can choose a radio button in html page.

Understand with Example

The Tutorial explains you an example from Checkbox in HTML. In this tutorial code, we create a set of check box, this set of check box can be selected more than one by the user.

<input type> :  The HTML page contains <input type>tag  define the start of input field in which the data can be entered by the user.

<name> : In this html code, it define a common name for the input element.

<value> :This define the output value of input element in  html page, when it is clicked. The Result is sent to the specified form's action URL.

<form action="">

I have a bicycle:
<input type="checkbox" name="vehicle" value="bicycle">

I have a bike:
<input type="checkbox" name="vehicle" value="bike">

I have a car:
<input type="checkbox" name="vehicle" value="car">

I have a bus:
<input type="checkbox" name="vehicle" value="bus">

I have a truck:
<input type="checkbox" name="vehicle" value="truck">

I have a aeroplane:
<input type="checkbox" name="vehicle" value="aeroplane">


</form>

Defines the result of the input element when clicked. The result is sent to the form's action URL.Save the code with .html extension. Paste the path of html code into a URL of  the browser. The output on the browser is displayed as  -

 
I have a bicycle:

I have a bike:

 I have a car:

 I have a bus:

 I have a truck:

 I have an aeroplane:

 

User can choice more than one option at a time.

 

Download

                         

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

THANKS ONCE AGAIN.....

Posted by manoj Kumar Bardhan on Wednesday, 12.3.08 @ 05:41am | #82323

Join and Excel yourself with our Online instructor led training sessions
Integrated Struts 2 Hibernate and JPA Training
Java Training
Hibernate Training
JPA Training
JSF Training
Spring Framework Training
Struts 2 Training
EJB 3 Training
PHP Training
Junit Training
DbUnit Training
Ajax Training
IBM Websphere Training
Design Patterns Training
Weblogic Training
Tomcat Training
JMS Training
Jboss Training
Servlet Training
JSP Training
JavaFX Training
SQL Server Training
TPTP Training
Tell A Friend
Your Friend Name

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.