469,608 Members | 2,257 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,608 developers. It's quick & easy.

Need help…any suggestions

7
Hello,
Here is the code:
<tr>
<tr>
<td class="FormCell">Do you live in US? </td>
<td class="FormCell"><input type="radio" value="true" name="Country">Yes</td>
<td class="FormCell"><input type="radio" value="false" checked name="Country">No</td>
</tr>

<% if true then %>
<td class="FormCell"> This is a test </td>
<td class="FormCell" colspan="2"><select name="TEST">
<option selected value="1">0 to 2500</option>
<option value="2">2,501 to 5,000</option>
<option value="3">5,001 to 8,000</option>
<option value="4">8,001 to 20,000</option>
<option value="5">over 20,000</option>
</select></td>
<% end if %>
</tr>

What I want is that when the page loads the No (Radio Button) is selected (that is by default) and than if the user select the Yes radio button than the dropdown list shows up (TEST).
I guess there r two ways to do that:
• Using DHTML (java script)
• Or some how using the post back function
I will really appreciate yr help. It’s kind of urgent.
Thanks a lot for yr time & effort.
Ricky
Dec 9 '06 #1
3 1197
sashi
1,754 Expert 1GB
Hello,
Here is the code:
<tr>
<tr>
<td class="FormCell">Do you live in US? </td>
<td class="FormCell"><input type="radio" value="true" name="Country">Yes</td>
<td class="FormCell"><input type="radio" value="false" checked name="Country">No</td>
</tr>

<% if true then %>
<td class="FormCell"> This is a test </td>
<td class="FormCell" colspan="2"><select name="TEST">
<option selected value="1">0 to 2500</option>
<option value="2">2,501 to 5,000</option>
<option value="3">5,001 to 8,000</option>
<option value="4">8,001 to 20,000</option>
<option value="5">over 20,000</option>
</select></td>
<% end if %>
</tr>

What I want is that when the page loads the No (Radio Button) is selected (that is by default) and than if the user select the Yes radio button than the dropdown list shows up (TEST).
I guess there r two ways to do that:
• Using DHTML (java script)
• Or some how using the post back function
I will really appreciate yr help. It’s kind of urgent.
Thanks a lot for yr time & effort.
Ricky
Hi guys,

I've moved this thread from ASP forum section. Take care.
Dec 11 '06 #2
AricC
1,892 Expert 1GB
Set the visibility to hidden then capture the onclick and set the visibility to visible. Here is an example.


HTH,
Aric
Dec 12 '06 #3
jgill
7
Hello,
Sorry for the late reply was really busy with other stuff…thanks u guys…for the help…but got few more questions that are???
1) How do I maintain state…that happens is that after post back and value in the dropdown & the radio buttons are not maintained…they go back to default.
2) If I want to call the values (selected in the drop down list) in some other page how do I do that.
Thanks…lot the help is appreciated
Dec 18 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

85 posts views Thread by | last post: by
1 post views Thread by samadams_2006 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.