0

In a form if i have a radio box say yes n no... on clicking on yes i want a text area to pop up
how do i do this

5
Contributors
10
Replies
11
Views
9 Years
Discussion Span
Last Post by vssp
0

hmmm i din get it there!!!
pl can u explain on how i can fo it

0

Asumming you have a hidden text area with the id "txarea" and a radio button with the is "rdbtn":

function onradiobuttonclick(){
var radiobutton = document.getElementById("rdbtn");
if (radiobutton.checked){
document.getElementById("txarea").style.visibility = "visible";
}
}
0

Asumming you have a hidden text area with the id "txarea"

How can you have a hidden text area ?

0

a text box that is hidden with CSS is not a hidden form field. Semantically, obviously, but technically, no.

0

@ ShawnCplus, the code you have mentioned gives a hidden textbox and not a textarea !

@scru, Hmm..Thats can be done. But if you apply css to it, then obviously, it will hide the textarea again if the page is reloaded.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.