Jump to content

[SOLVED] Input "text" to look like text area


Recommended Posts

Hi all,

 

Does anyone know if it is possible to have input type="text" that looks like the text area (it HAS to be an input tag)?

I tried stretching it using style="height:100px;" but that just created white space under it couldn't type there, was the same.

I just need something bigger that you can see your text in after you have typed a lot. Any ideas?

 

Thanks in advance.

unfortunately, an input element is for one-liners.  one option is to use javascript to echo the value of the input element beside it, which allows them to see what they've typed even if the input element is only one line.  otherwise you're forced to use a textarea.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.