PDA

View Full Version : Show/Hide Textarea



LiseC
01-18-2007, 06:11 PM
Hello all ..

I've built an online questionnaire, and when somebody checks a "Yes" checkbox they must provide an explaination. Instead of cluttering my webpage with a bunch of textareas, I would like to display them dynamically ONLY if a "Yes" checkbox is checked.

How can I accomplish this?

Thanks,
LiseC

12345c
01-19-2007, 12:46 AM
There is better way to show tooltip near checkbox (iv div), not text in textarea. Use document.getElementById('divWithExplanation').style.display='block' for show this layer (default style is display:none).