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.
|
|
|
 |
|