简体   繁体   English

如何删除 textArea 的 null 值

[英]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 中时,她给了我一个类似于屏幕截图中的空间。

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

How can i enable or remove the space ?如何启用或删除空间?

enter image description here在此处输入图片说明

标签之间有空格,将其删除如下。

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

您需要通过编写您的<textarea>代码来删除中断,如下所示:

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

Try this -尝试这个 -

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

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像这样写代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM