programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Saturday, August 2, 2014

Html Radio Button

Radio Button in Html language:

Radiobutton used when you want to select one option from a set of given option.
How to define RadioButton on Html page: 

<input type="radio" name="browser"  value="Button1"/> Button1<br>

Here in this declaration we conside type of input tag, name define group and value define which store in the value field of given input tag.
Radio button group work as like collection of radio buttons. There are many properties for design radio button user friendly. 

Radio Button  select option:


  <optgroup label="** ">

    <option value="**** ">**** </option>

    ....  </optgroup>

  <optgroup label="#### ">    ...



This define how to give the selection option in Radio button


Radio button JavaScript:


<script type="text/javascript">
    function check(browser){
This Script gives the value of selected button.and print it on form text field.


RadioButton Properties:

  • Id: Use unique key for Access to control.
  • Name: For use Association more than one .
  • Value: define what you display with html button.

Other back color, border color, border style, font names, font bold, font italic, fore color (text color) and many more property.

Example Radiobutton on html page:

In this Example we consider three buttons in a same group. And take a text field for display selected button value.

<script type="text/javascript">
    function check(browser){


<form>Select which browser is your favorite:<br>
<input type="radio" name="browser" onclick="check(this.value)"
            value="Button1"> Button1<br>
<input type="radio" name="browser" onclick="check(this.value)"
            value=" Button2"> Button2<br>
<input type="radio" name="browser" onclick="check(this.value)"
            value=" Button3"> Button3<br>
<input type="text" name="answer" size="20">

Html Radiobutton
Html Radio button

Other Post :

No comments:

Post a Comment