"Dynamic" textbox /TEXTAREA
-
I have a checkboxlist, that can have from 1 to 32 checkboxes... When a checkbox is clicked, I want to display a TextBox/TextArea... How can I reserve a place for this textbox next to each checkboxlist? How can I have it as textarea since the text can be a paragraph or more?
-
I have a checkboxlist, that can have from 1 to 32 checkboxes... When a checkbox is clicked, I want to display a TextBox/TextArea... How can I reserve a place for this textbox next to each checkboxlist? How can I have it as textarea since the text can be a paragraph or more?
You could place the textbox, textarea, or a
div
tag containing your text next to the check box, and setting the CSSdisplay
property to'none'
. You could then add a javascript handler to the checkbox to flip thedisplay
to'block'
. That would allow you to peek-a-boo the text on the client side, eliminating uneeded postbacks. That technique should work for modern browsers. I'd double check compatibility if you need to support some of the dinosaurs (ie Netscape 4.) Hope that helps. :) --Jesse