Home Dojo Dojo Checkbox
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Dojo Checkbox

Advertisement
In this section, you will learn how to create a checkbox in dojo. For creating checkbox you require "dijit.form.CheckBox". The checkbox button do some action on press.

Dojo Checkbox

        

In this section, you will learn how to create a checkbox in dojo. For creating checkbox you require "dijit.form.CheckBox". The checkbox button do some action on press. 

Try Online: Checkbox

[Checkboxes are used when there are multiple lists of options and user may select any number of choices, including zero, one, or more. Each checkbox is independent of all other checkboxes in the list, so checking one box doesn't uncheck the others.]

Check boxes are the same as html but dojo provides more controls and styling options than a conventional check box. The checkbox contains Boolean types value either 'true' or 'false'. The following example creates a Checkbox:

 

Here is the code of Program:

<html>
  <head>
  <title>checkbox</title>
  <!-- check box -->
  <script type="text/javascript">
  dojo.require("dojo.parser");
  dojo.require("dijit.form.CheckBox");
  </script>
  </head>

  <body>
  <h2>Check box</h2>
  <input id="cb" dojotype="dijit.form.CheckBox" name="developer" 
   checked=
"checked" value="on" type="checkbox" />
  <label for="cb"> Are you a Developer </label> 
  </body>
</html> 

Output of Program:

 

Try Online:

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 1, 2008

Ask Questions?    Discuss: Dojo Checkbox  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
preetha
May 16, 2012
how to delete multiple rows using struts

we have to work with struts nd hibernate.. so, how to delete multiple rows using checkbox in struts
DMCA.com