Reputation: 11
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 ?
Upvotes: 1
Views: 405
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
Reputation: 499
Try this -
<textarea name="commentaireTest" id="commentaireTest" cols="100" rows="3">
{{ trim($admission->commentaire) }}
</textarea>
Upvotes: 0
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
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