I’m not sure how to setup the User Interface for the following scenario:
Are you available for 5:00 or 6:30, or
both? And if both, do you prefer one over the
other?
So far, I’ve got two groups of radio buttons, but I’m stuck on the “do you prefer one over the other” scenario. I’m thinking if they hold down the YES radio button, then it changes color or something to denote that they are not only available for that choice, but that they prefer that choice as well.
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>5:00</legend>
<input type="radio" name="Avail500" id="Avail500_0" value="0">
<label for="Avail500_0">No</label>
<input type="radio" name="Avail500" id="Avail500_1" value="1">
<label for="Avail500_1">Yes</label>
</fieldset>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>6:30</legend>
<input type="radio" name="Avail630" id="Avail630_0" value="0">
<label for="Avail630_0">No</label>
<input type="radio" name="Avail630" id="Avail630_1" value="1">
<label for="Avail630_1">Yes</label>
</fieldset>
</div>
Since mobile is a new mindset, I thought I should ask Stackoverflow instead of make up my own user interface.
Live Example:
HTML:
Another plus is that is uses a lot less code