|
 |
asp_web_howto thread: Controlling Appearance of <SELECT> tags
Message #1 by raymurphy@g... on Wed, 17 Oct 2001 15:31:08
|
|
Folks,
I'm currently developing a couple of asp applications which are coming
along nicely, but have to incorporate a number of amendments to another
application - and would like some advice on how to implement one specific
amendment.
I need to add a radio button to a search page, with that radio button
denoting whether Date of Birth should be added to the search criteria -
the idea is that if the user clicks the radio button, they would then be
presented with a dropdown list of Year values.
Ideally, I'd like the Year dropdown to be invisible to the user UNLESS
they have clicked on the radio button, in which case they should see the
Year dropdown. Has anyone ideas on how to implement such a feature,
please ?
Thanks.
Ray
Message #2 by "O'Hara, Elliott M" <EMOHARA@k...> on Wed, 17 Oct 2001 10:42:54 -0400
|
|
sure do...
for a small fee... J/K ;-)
do something like this. I didn't test it, but it should work...
--------------------------------------
<script language="javascript">
function makeVisible(x){
if(x==1){
hideme.style.visibility='visible'
}else{
hideme.style.visibility='hidden'
}
}
</script>
<input type="radio" id="radDate" name="radDate" onclick="makeVisible(1)"
/>Unhide
<input type="radio" id="radDate" name="radDate" onclick="makeVisible(2)"
/>Hide
<div id="hideme" style="visibility:hidden">my hidden stuff</div>
Message #3 by raymurphy@g... on Fri, 19 Oct 2001 09:19:05
|
|
Elliott,
Spot on - that was exactly what I wanted - thanks a lot !!
Ray
|
|
 |