Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Dojo Radio Button 
 

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

 

Dojo Radio Button

                          

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

Try Online: Radio Button

The RadioButton class is declared in the CheckBox.js file, hence you need dojo.require(dijit.form.CheckBox) for RadioButtons to work.

[Radio buttons are used when there is a list of two or more options that are mutually exclusive and the user must select exactly only one choice from a group of radio button. Click a non-selected radio button will deselect whatever other button was previously selected in the list.]

Radio Buttons are the same as html but dojo provides more controls and styling options than a conventional Radio button. The radio button also contains Boolean types value either 'true' or 'false'. The following example creates a Radio buttons:

Here is the code of Program:

<html>
  <head>
    <title>Radio</title>
    <!-- radio -->
    <script type="text/javascript">
      dojo.require("dojo.parser");
      dojo.require("dijit.form.*");
    </script>
  </head>

  <body>
    <h2>Radio button</h2>
    <input dojoType="dijit.form.RadioButton" id="val1" name="group1" 
          checked=
"checked" value="Programmer" type="radio" />
    <label for="val1"> Programmer </label>
    <input dojotype="dijit.form.RadioButton" id="val2"  name="group1" 
           
value="Designer" type="radio" />
    <label for="val2"> Designer </label>
    <input dojotype="dijit.form.RadioButton" id="val3"  name="group1" 
                      
value="Developer" type="radio" />
    <label for="val3"> Developer </label> 
  </body>
</html>

Output of Program:

 

Try Online:

 

                          

» View all related tutorials
Related Tags: c dojo io accordion this ai container learn ear e il section in nt out j do s is ll

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:

First of all, thank you very much for your superb tutorial.

I have created a html file as per mentioned, i have copied the directory [dojo release1.1.1] as well. Now where should i place my html file to run it? Inside the dojo release1.1.1 folder or outside it?

pls reply and send the reply to my mail id as mentioned:
prasanth417@yahoo.com

Posted by harley on Thursday, 08.7.08 @ 18:27pm | #71595

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

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 | Flex 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.