CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Hidding Text Box depending of Radio Button Value

Print topic Send  topic

Author Message
Rafael Barrientos
Posted: 04/23/2003, 3:58 PM

How To Hide TextBox depending of Radio Button Value, of course i need a JavaScript Solution embeding in CodeCharge Studio because i need to do the work in the client side.
example.
if radiobutton.value="R"
textbox.visible=true
else
textbox.visible=false
end if
help Me
kburnett
Posted: 04/23/2003, 5:30 PM

so would you like the textbox to disappear as soon as the user checks the checkbox? if so, then you would need client side.

hiding parts of a form as the user makes selections is a bit tricky, especially if you care about being cross-browser.

i believe this is the case: for i.e. you can simply make the set the field.visiable = false. for netscape you will need layers.

here's a good example of i.e:

<script type="text/javascript">

function changeIt() {
if(document.frm.check.checked){
document.frm.text.style.visibility="hidden"; //set to visible
}else{
document.frm.text.style.visibility="visible"; //set to visible
}
}
</script>
</head>

<body>
<form name="frm">
<input type="checkbox" name="check" value="one" onclick="changeIt()">
<input type="text" name="text" style="visibility: visible">
</form>
RAFAEL BARRIENTOS
Posted: 04/23/2003, 7:59 PM

kburnett, Thank You Very Much, your tips is real, my work is alive. this work very good.

See next Topic.


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.