-3

I get that textarea is its own element and not an input type, but how can I convert

<input type="text"
    class="media_url"
    name="media[image_url][]"
    value=""
/>

to use textarea instead? Or is there a better way to have a text input field display as a different height and have the text wrap and not be middle vertically aligned?

Community
  • 1
  • 1
myol
  • 8,857
  • 19
  • 82
  • 143
  • no. text inputs are inherently single-line fields. You can change their height via css, but you canNOT change them to become multi-line. That's why there's textareas. – Marc B Nov 24 '14 at 16:23
  • What exactly are you asking for? How to use a `textarea`? Any reason why you want to use `input`? – musefan Nov 24 '14 at 16:23

2 Answers2

4
<textarea
    class="media_url"
    name="media[image_url][]"
></textarea>
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
0
 <textarea name="media[image_url][]" class="media_url" rows="40" cols="10"> 
</textarea>
DWolf
  • 703
  • 1
  • 7
  • 20