mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-05 07:01:00 +00:00
fixed a few form id's for better syntax
This commit is contained in:
parent
12b1bb4fa2
commit
a0940dd1f0
1 changed files with 26 additions and 8 deletions
|
|
@ -56,10 +56,10 @@
|
|||
<div data-role="fieldcontain">
|
||||
<fieldset data-role="controlgroup">
|
||||
<legend>Choose a pet:</legend>
|
||||
<input type="radio" name="radio-pet-1" id="radio-pet-1" value="choice-1" checked="checked" />
|
||||
<input type="radio" name="radio-pet-1" id="radio-pet-1" value="choice-1" checked="checked" data-theme="a" />
|
||||
<label for="radio-pet-1">Cat</label>
|
||||
|
||||
<input type="radio" name="radio-pet-1" id="radio-pet-2" value="choice-2" />
|
||||
<input type="radio" name="radio-pet-1" id="radio-pet-2" value="choice-2" data-theme="a" />
|
||||
<label for="radio-pet-2">Dog</label>
|
||||
|
||||
<input type="radio" name="radio-pet-1" id="radio-pet-3" value="choice-3" />
|
||||
|
|
@ -83,15 +83,33 @@
|
|||
<div data-role="fieldcontain">
|
||||
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||
<legend>Layout view:</legend>
|
||||
<input type="radio" name="radio-view-b" id="radio-view-c" value="on" checked="checked" />
|
||||
<label for="radio-view-c">List</label>
|
||||
<input type="radio" name="radio-view-b" id="radio-view-d" value="off" />
|
||||
<label for="radio-view-d">Grid</label>
|
||||
<input type="radio" name="radio-view-b" id="radio-view-e" value="other" />
|
||||
<label for="radio-view-e">Gallery</label>
|
||||
<input type="radio" name="radio-view" id="radio-view-a" value="list" data-icon="false" />
|
||||
<label for="radio-view-a">List</label>
|
||||
<input type="radio" name="radio-view" id="radio-view-b" value="grid" data-icon="false" />
|
||||
<label for="radio-view-b">Grid</label>
|
||||
<input type="radio" name="radio-view" id="radio-view-c" value="gallery" data-icon="false" />
|
||||
<label for="radio-view-c">Gallery</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<h2>No icon option</h2>
|
||||
|
||||
<p>If you don't want the default radiobutton icon to be added, add the <code>data-icon="false"</code> attribute to each radio <code>input</code>. </p>
|
||||
|
||||
<div data-role="fieldcontain">
|
||||
<fieldset data-role="controlgroup">
|
||||
<legend>These don't have the radio state icons:</legend>
|
||||
<input type="radio" name="radio-noicon" id="radio-noicon1" value="a" data-icon="false" checked="checked" />
|
||||
<label for="radio-noicon1">Yes</label>
|
||||
<input type="radio" name="radio-noicon" id="radio-noicon2" value="b" data-icon="false" />
|
||||
<label for="radio-noicon2">No</label>
|
||||
<input type="radio" name="radio-noicon" id="radio-noicon3" value="c" data-icon="false" />
|
||||
<label for="radio-noicon3">Maybe</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
-->
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue