Skip to content

Commit 51908bd

Browse files
committed
Updated the radiobutton page to fix the sample code that showed two data-role attributes on a single element.
1 parent 0cccfda commit 51908bd

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

docs/forms/forms-radiobuttons.html

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ <h2>Horizontal radio button sets</h2>
7979
<p>Radio buttons can also be used for grouped button sets only a single button can be selected at once, such as a view switcher control. To make a horizontal radio button set, add the <code> data-type="horizontal"</code> to the <code>fieldset</code>.</p>
8080

8181
<code>
82-
&lt;fieldset data-role=&quot;controlgroup&quot; <strong>data-type=&quot;horizontal&quot;</strong> data-role=&quot;fieldcontain&quot;&gt;
82+
&lt;fieldset data-role=&quot;controlgroup&quot; <strong>data-type=&quot;horizontal&quot;</strong> &gt;
8383
</code>
8484

85-
<p>The framework will float the labels so they sit side-by-side on a line, hide the radio button icons and only round the left and right edges of the group.</p>
86-
8785
<div data-role="fieldcontain">
8886
<fieldset data-role="controlgroup" data-type="horizontal">
8987
<legend>Layout view:</legend>
@@ -95,24 +93,11 @@ <h2>Horizontal radio button sets</h2>
9593
<label for="radio-view-c">Gallery</label>
9694
</fieldset>
9795
</div>
96+
97+
<p>The framework will float the labels so they sit side-by-side on a line, hide the radio button icons and only round the left and right edges of the group.</p>
98+
99+
98100

99-
<!--
100-
<h2>No icon option</h2>
101-
102-
<p>If you don't want the default radiobutton icon to be added, add the <code></code> attribute to each radio <code>input</code>. </p>
103-
104-
<div data-role="fieldcontain">
105-
<fieldset data-role="controlgroup">
106-
<legend>These don't have the radio state icons:</legend>
107-
<input type="radio" name="radio-noicon" id="radio-noicon1" value="a" checked="checked" />
108-
<label for="radio-noicon1">Yes</label>
109-
<input type="radio" name="radio-noicon" id="radio-noicon2" value="b" />
110-
<label for="radio-noicon2">No</label>
111-
<input type="radio" name="radio-noicon" id="radio-noicon3" value="c" />
112-
<label for="radio-noicon3">Maybe</label>
113-
</fieldset>
114-
</div>
115-
-->
116101

117102

118103

0 commit comments

Comments
 (0)