diff --git a/docs/forms/docs-forms.html b/docs/forms/docs-forms.html index 18e179ad..68fa2196 100755 --- a/docs/forms/docs-forms.html +++ b/docs/forms/docs-forms.html @@ -132,7 +132,7 @@ myswitch .slider("refresh");
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-all-native.html b/docs/forms/forms-all-native.html index 4aa49dc8..71d8be11 100755 --- a/docs/forms/forms-all-native.html +++ b/docs/forms/forms-all-native.html @@ -222,7 +222,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-all.html b/docs/forms/forms-all.html index 96744295..ff7b7152 100755 --- a/docs/forms/forms-all.html +++ b/docs/forms/forms-all.html @@ -220,7 +220,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-checkboxes.html b/docs/forms/forms-checkboxes.html index 8d70500b..6f9756ec 100755 --- a/docs/forms/forms-checkboxes.html +++ b/docs/forms/forms-checkboxes.html @@ -128,7 +128,7 @@ $("input[type='checkbox']").attr("checked",true).checkboxradio("refresh");
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-sample-response.php b/docs/forms/forms-sample-response.php index 7ac525b4..25c5434d 100755 --- a/docs/forms/forms-sample-response.php +++ b/docs/forms/forms-sample-response.php @@ -53,7 +53,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-sample-selfsubmit.php b/docs/forms/forms-sample-selfsubmit.php index 48d30c44..3cd94a61 100755 --- a/docs/forms/forms-sample-selfsubmit.php +++ b/docs/forms/forms-sample-selfsubmit.php @@ -54,7 +54,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-sample.html b/docs/forms/forms-sample.html index a23c084b..2098126f 100755 --- a/docs/forms/forms-sample.html +++ b/docs/forms/forms-sample.html @@ -66,7 +66,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-search.html b/docs/forms/forms-search.html index 37a85311..4338b8f1 100755 --- a/docs/forms/forms-search.html +++ b/docs/forms/forms-search.html @@ -70,7 +70,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-slider.html b/docs/forms/forms-slider.html index 95c43aec..e0456285 100755 --- a/docs/forms/forms-slider.html +++ b/docs/forms/forms-slider.html @@ -80,7 +80,7 @@ $("input[type=range]").val(60).slider("refresh");
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-switch.html b/docs/forms/forms-switch.html index 3d57b9c4..132f2d50 100755 --- a/docs/forms/forms-switch.html +++ b/docs/forms/forms-switch.html @@ -77,7 +77,7 @@ myswitch .slider("refresh");
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/forms-themes.html b/docs/forms/forms-themes.html index 6d22a781..895680ff 100755 --- a/docs/forms/forms-themes.html +++ b/docs/forms/forms-themes.html @@ -381,7 +381,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/index.html b/docs/forms/index.html index d5643913..44e64137 100755 --- a/docs/forms/index.html +++ b/docs/forms/index.html @@ -31,7 +31,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/plugin-eventsmethods.html b/docs/forms/plugin-eventsmethods.html index e2024d41..3854151b 100755 --- a/docs/forms/plugin-eventsmethods.html +++ b/docs/forms/plugin-eventsmethods.html @@ -194,7 +194,7 @@ $('input').button('disable');
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/radiobuttons/events.html b/docs/forms/radiobuttons/events.html new file mode 100644 index 00000000..d8b45f8a --- /dev/null +++ b/docs/forms/radiobuttons/events.html @@ -0,0 +1,102 @@ + + + + + + jQuery Mobile Docs - Radio buttons + + + + + + + + + +
    + +
    +

    Radio buttons

    + Home +
    + +
    +
    + +
    + +

    Radio buttons

    + + + +

    Since the native radio button is used as a proxy for the custom radio button, you can watch for events on the original, native radio button instead of needing to go through the radio button plugin. Bind to the change event by type: change, blur, focus, keypress, click, etc.

    +
    
    +$("input[type='radio']").bind( "change", function(event, ui) {
    +  ...
    +});
    +
    + +

    The radio button plugin has the following custom events:

    + +
    + +
    create triggered when a radio button is created
    +
    +

    This event is used to find out when a custom radio button was created. It is not used to create a custom radio button. The radio button create event can be used like this:

    + +
    
    +$("input[type='radio']").checkboxradio({
    +   create: function(event, ui) { ... }
    +});		
    +			
    +
    + + +
    + +
    +
    + + + +
    + + + +
    + + + + diff --git a/docs/forms/forms-radiobuttons.html b/docs/forms/radiobuttons/index.html similarity index 79% rename from docs/forms/forms-radiobuttons.html rename to docs/forms/radiobuttons/index.html index a6c674d1..dea786d6 100755 --- a/docs/forms/forms-radiobuttons.html +++ b/docs/forms/radiobuttons/index.html @@ -6,10 +6,10 @@ jQuery Mobile Docs - Radio Buttons - - - - + + + + @@ -17,7 +17,7 @@

    Radio buttons

    - Home + Home
    @@ -26,6 +26,14 @@

    Radio buttons

    + + +

    Radio buttons are used to provide a list of options where only a single items can be selected. Traditional desktop radio buttons are not optimized for touch input so in jQuery Mobile, we style the label for the radio buttons so they are larger and look clickable. A custom set of icons are added to the label to provide additional visual feedback.

    Both the radio and checkbox controls below use standard input/label markup, but are styled to be more touch-friendly. The styled control you see is actually the label element, which sits over the real input, so if images fail to load, you'll still have a functional control. In most browsers, clicking the label automatically triggers a click on the input, but we've had to trigger the update manually for a few mobile browsers that don't do this natively. On the desktop, these controls are keyboard and screen-reader accessible.

    @@ -126,19 +134,19 @@ $("input[type='radio']").attr("checked",true).checkboxradio("refresh");
    diff --git a/docs/forms/radiobuttons/methods.html b/docs/forms/radiobuttons/methods.html new file mode 100644 index 00000000..372506e2 --- /dev/null +++ b/docs/forms/radiobuttons/methods.html @@ -0,0 +1,105 @@ + + + + + + jQuery Mobile Docs - Radio buttons + + + + + + + + + +
    + +
    +

    Radio buttons

    + Home +
    + +
    +
    + + + +

    Radio buttons

    + + + +

    The radio button has the following methods:

    + +
    + +
    enable enable a disabled radio button
    +
    +
    
    + $("input[type='radio']").checkboxradio('enable');
    +				
    +
    + +
    disable disable a select.
    +
    +
    
    +$("input[type='radio']").checkboxradio('disable');
    +				
    +
    + +
    refresh update the custom select
    +
    + If you manipulate a radio button via JavaScript, you must call the refresh method on it to update the visual styling. +
    
    +$("input[type='radio']:first").attr("checked",true).checkboxradio("refresh");
    +				
    +
    + +
    + + +
    + + + +
    + + + +
    + + + + diff --git a/docs/forms/radiobuttons/options.html b/docs/forms/radiobuttons/options.html new file mode 100644 index 00000000..e7489821 --- /dev/null +++ b/docs/forms/radiobuttons/options.html @@ -0,0 +1,90 @@ + + + + + + jQuery Mobile Docs - Radio buttons + + + + + + + + + +
    + +
    +

    Radio buttons

    + Home +
    + +
    +
    + +
    + +

    Radio buttons

    + + + +

    The radio button has the following options:

    + +
    + +
    theme string
    +
    +

    default: null, inherited from parent

    +

    Sets the theme swatch color scheme for the radio button. This is a single letter from a-z that maps to the swatches included in your theme. By default, a radio button will inherit the same swatch color as it's parent container if not explicitly set. This option is also exposed as a data attribute: data-theme="a"

    +
    $("input[type='radio'").checkboxradio({ theme: "a" });
    +
    + +
    + +
    +
    + + + +
    + + + +
    + + + + diff --git a/docs/forms/selects/events.html b/docs/forms/selects/events.html index 673a200c..2a8f37c2 100644 --- a/docs/forms/selects/events.html +++ b/docs/forms/selects/events.html @@ -77,7 +77,7 @@ $( ".selector" ).selectmenu({
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/selects/index.html b/docs/forms/selects/index.html index 70bde037..3d9c543f 100644 --- a/docs/forms/selects/index.html +++ b/docs/forms/selects/index.html @@ -462,7 +462,7 @@ myselect.selectmenu("refresh");
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/selects/methods.html b/docs/forms/selects/methods.html index b7eb7a59..6e4c34c8 100644 --- a/docs/forms/selects/methods.html +++ b/docs/forms/selects/methods.html @@ -98,7 +98,7 @@ $('select').selectmenu('refresh', true);
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/selects/options.html b/docs/forms/selects/options.html index 05fb6efe..e16f7014 100644 --- a/docs/forms/selects/options.html +++ b/docs/forms/selects/options.html @@ -124,7 +124,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/texts/events.html b/docs/forms/texts/events.html index 090a2455..60a4dec5 100644 --- a/docs/forms/texts/events.html +++ b/docs/forms/texts/events.html @@ -76,7 +76,7 @@ $( ".selector" ).textinput({
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/texts/index.html b/docs/forms/texts/index.html index 5f84e369..df16123c 100755 --- a/docs/forms/texts/index.html +++ b/docs/forms/texts/index.html @@ -134,7 +134,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/texts/methods.html b/docs/forms/texts/methods.html index 58310964..fe1565b0 100644 --- a/docs/forms/texts/methods.html +++ b/docs/forms/texts/methods.html @@ -72,7 +72,7 @@ $('select').selectmenu('disable');
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms
  • diff --git a/docs/forms/texts/options.html b/docs/forms/texts/options.html index c44cac5a..a3b481e3 100644 --- a/docs/forms/texts/options.html +++ b/docs/forms/texts/options.html @@ -65,7 +65,7 @@
  • Search inputs
  • Slider
  • Flip toggle switch
  • -
  • Radio buttons
  • +
  • Radio buttons
  • Checkboxes
  • Select menus
  • Theming forms