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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

working with Radiolistbox

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have a radiolist that I want to have one of the buttons preselected when the page loads based on a database object. How can I do this? Right now I am string that value in a string and doing a if statement, but I don't know how to tell the radio button to be selected already.
 
if val1="desiredValue" then keyWord = "CHECKED" else keyWord=""

<input name=&quot;radioGroup1&quot; value=&quot;<%=objRS(&quot;field1&quot;)%>&quot; <%=keyWord%>> -----------------------------------------------------------------
&quot;The difference between 'involvement' and 'commitment' is like an eggs-and-ham breakfast: the chicken was 'involved' - the pig was 'committed'.&quot;
- unknown

mikewolf@tst-us.com
 
Try...
<input type=radio value=&quot;a&quot; checked>A
<input type=radio value=&quot;b&quot;>B Jessica [ponytails2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top