[SWLUG] Populating radio buttons

Justin Mitchell justin at discordia.org.uk
Fri Jun 23 12:28:33 UTC 2006


On Fri, 2006-06-23 at 13:12 +0100, Neil Jones wrote:
> This is a simple one I'm sure but it is driving me crazy that I can't
> remember how to do it.
> 
> I have a series of radio buttons on a form. I want to have them come up
> set so that I can unset the ones that are not relevant to me.

http://www.w3.org/TR/html4/interact/forms.html#h-17.4

  checked   (checked)   #IMPLIED  -- for radio buttons and check boxes

<INPUT TYPE="radio" NAME="mygroup" VALUE="1" CHECKED> 1
<INPUT TYPE="radio" NAME="mygroup" VALUE="2"> 2
<INPUT TYPE="radio" NAME="mygroup" VALUE="3"> 3






More information about the Swlug mailing list