Daniel Nill
Daniel Nill

Reputation: 5747

displaying text in read only text areas

given the simple code:

<textarea>hello</textarea>

shouldn't a text area with the word hello be displayed?

why am i not getting that with:

<table>
  <tr>
    <td>
        <textarea wrap="physical" readonly="yes" style="height:510px; width:750px">
        hello
        </textarea> 
        </br>
    </td>
  </tr>
</table>

Upvotes: 0

Views: 419

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798686

Text areas are expected to be found in forms, not just anywhere. Wrap it in a <form> element.

Upvotes: 1

Related Questions