|
Posted by Beauregard T. Shagnasty on 05/15/07 22:40
Time Waster wrote:
> I want to present a series of rows with 2 choices on each, only one of
> which can be selected. Radio button, i guess. But i *don't* want
> either choice to be preselected. Gee, that sounds like a simple
> problem ... and one I've seen solved before.
Radio buttons are by default unselected, unless you add
checked
to one of them.
<input type="radio" name="color" value="green" >Green<br>
<input type="radio" name="color" value="red" >Red<br>
<input type="radio" name="color" value="blue" checked >Blue<br>
<input type="radio" name="color" value="brown" >Brown
Blue would be selected. Oh, and many browsers remember what was selected
a first time, and may show that same selection if the page is refreshed,
even though you did not use "checked".
--
-bts
-Motorcycles defy gravity; cars just suck
Navigation:
[Reply to this message]
|