mirror of
https://github.com/kognise/water.css.git
synced 2025-08-17 18:37:04 +02:00
Add additional form elements to demo (#271)
* Fix multiple checked in radio group There should only be one value checked by default in a radio group. * Add additional form elements to demo
This commit is contained in:
@@ -211,19 +211,31 @@
|
|||||||
<label for="about">About me</label>
|
<label for="about">About me</label>
|
||||||
<textarea name="about" id="about" placeholder="I am a textarea..."></textarea>
|
<textarea name="about" id="about" placeholder="I am a textarea..."></textarea>
|
||||||
|
|
||||||
<label>Choose a Doe:</label>
|
<label for="rating">Rate this site</label>
|
||||||
<div>
|
<input name="rating" id="rating" type="range" min="1" max="10"></input>
|
||||||
<input type="radio" id="john" name="drone" value="john" checked />
|
|
||||||
<label for="john">John Doe</label>
|
<label for="flavor">Choose a flavor</label>
|
||||||
</div>
|
<select name="flavor" id="flavor">
|
||||||
<div>
|
<option>Chocolate</option>
|
||||||
<input type="radio" id="jane" name="drone" value="jane" checked />
|
<option>Strawberry</option>
|
||||||
<label for="jane">Jane Doe</label>
|
<option>Vanilla</option>
|
||||||
</div>
|
</select>
|
||||||
<div>
|
|
||||||
<input type="radio" id="johnny" name="drone" value="johnny" checked />
|
<fieldset>
|
||||||
<label for="johnny">Johnny Doe</label>
|
<legend>Choose a Doe</legend>
|
||||||
</div>
|
<div>
|
||||||
|
<input type="radio" id="john" name="drone" value="john" checked />
|
||||||
|
<label for="john">John Doe</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="radio" id="jane" name="drone" value="jane" />
|
||||||
|
<label for="jane">Jane Doe</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="radio" id="johnny" name="drone" value="johnny" />
|
||||||
|
<label for="johnny">Johnny Doe</label>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user