[thelist] hidden textarea

Tom Dell'Aringa pixelmech at yahoo.com
Mon Aug 19 15:08:01 CDT 2002


--- Jonathan_A_McPherson at rl.gov wrote:
> Anil,
>
> > How can i make a textarea hidden( as in case of text we write
> > type='hidden' ,how to do this in case of text area)
> >
> > <TEXTAREA name="comments" rows="5" cols="30"></TEXTAREA>
>
> I would recommend against using CSS to hide the textarea (as others
> may have
> proposed), because then it will show up on browsers that do not
> support CSS
> or may have CSS overrides in place.
>
> <input type="hidden" name="comments" value="whatever" />
>
> ... is probably what you want. The main distinction between <input
> type="text" /> and <textarea> is that <textarea> supports multiple
> lines --
> and <input type="hidden" /> supports multiple lines too. It is
> therefore
> useful for storing <textarea> data as well as <input type="text" />
> data.

That all depends on what he wants to do with it (don't think he
said?). If you want the textarea to reappear at some point, you have
no choice but to use CSS. Otherwise, if its just a huge input type
hidden thing, then the above is a good solution.

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



More information about the thelist mailing list