You are here: Re: newbie radio button qstn « HTML « IT news, forums, messages
Re: newbie radio button qstn

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация