a_l_e_x
a_l_e_x

Reputation: 400

HTML: Textarea does not return the value

I'm having a problem with textarea; in particular I don't get back the "description" value saved in the database. I just get a blank, worthless space.

I have name and price which are of type text, while description is textarea, as the code below shows.

Name:              <input type="text" name="name" value="${fruit.name}" />
        
Descrption:       <textarea class="text" name="description" rows="4" cols="50" value="${fruit.description}"> </textarea>

Price:            <input type="text" name="price" value="${fruit.price}" />

Thank you all

Upvotes: 0

Views: 231

Answers (1)

Sarwar Ahmed
Sarwar Ahmed

Reputation: 994

textarea should be like this

<textarea class="text" name="description" rows="4" cols="50"> ${fruit.description}</textarea>

Upvotes: 3

Related Questions