Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default radio selection... 1

Status
Not open for further replies.

Extras

Technical User
Nov 16, 2001
232
US
This is pretty simple, but I am drawing a blank....

I have a display of four radio buttons, what is the html code to make Selection 1 as the default selection?

<tr>
<td>
<input type=&quot;radio&quot; name=&quot;AppForm_Status&quot; value=&quot;1&quot;>
Selection 1
</td>
</tr>
<tr>
<td>
<input type=&quot;radio&quot; name=&quot;AppForm_Status&quot; value=&quot;2&quot;>
Selection 2
</td>
</tr>
<tr>
<td>
<input type=&quot;radio&quot; name=&quot;AppForm_Status&quot; value=&quot;3&quot;>
Selection 3
</td>
</tr>
 
Add 'checked' to the one that you want preselected.

<input type=&quot;radio&quot; checked name=&quot;AppForm_Status&quot; value=&quot;1&quot;>
 
thanks did not know if it was &quot;checked&quot; or a value score like &quot;1&quot;

Thanks for the prompt reply!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top