Radio Button List Question

P

Poppy

I have a radio button list

value = 1, text = "Option 1"
value = 2, text = "Option 2"

It might soung stupid but how do I get the first item to display if I enter
the number 1 and the second item if I enter the number 2.

Cheers Big Ears
 
R

Ray at

Enter it into what?

<%
sVar = "2"
%>

<input type="radio" value="1"<% If sVar = "1" Then Response.Write " checked"
%>>Option 1
<input type="radio" value="2"<% If sVar = "2" Then Response.Write " checked"
%>>Option 2

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,141
Latest member
BlissKeto
Top