Mohamed JK
Mohamed JK

Reputation: 11

How can i remove the value null of textArea

When i try to put the old value in textArea and she give me a space like in the screenShot.

<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">
  {{$admission->commentaire}}
</textarea>

How can i enable or remove the space ?

enter image description here

Upvotes: 1

Views: 405

Answers (4)

Naveen Kumar
Naveen Kumar

Reputation: 55

You shouldn't give space before your old value.

<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">{{$admission->commentaire}}</textarea>

Write code like that

Upvotes: 0

DIGVJSS
DIGVJSS

Reputation: 499

Try this -

<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">
  {{ trim($admission->commentaire) }}
</textarea>

Upvotes: 0

Muhammad Bilal
Muhammad Bilal

Reputation: 344

You need remove break by writing your <textarea> code like as below:

<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">{{$admission->commentaire}}</textarea>

Upvotes: 0

Dilip Hirapara
Dilip Hirapara

Reputation: 15296

You've space between tag, remove it as below.

<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">{{ trim($admission->commentaire) }}</textarea>

Upvotes: 1

Related Questions