3
Can you help me?
I have a Javascript function that increases the textarea size as we type the text and give ENTER. So far, everything ok.
However, when pulling this information from the database, the textarea does not come with its size respecting the text size.
Following example to try to illustrate better:
<textarea class="form-control" readonly>{{ $resposta->resposta }}</textarea>
Would they know how to fix it? Thank you!
Hello! Thank you for your reply. When I write the message in pure html, it returns with the correct line size. But when I bring the information from the database, no. From what I saw when inspecting the element, js is loading before the system pulls the database data. Then it loads empty. I even put that js at the bottom of the page, yet it loads before. I would know how to get around it?
– ShBr
I found my problem. There was another textarea right up there, so he was counting the lines of this first one, not the one just below. Set a different class for each and done. Solved! Thanks a lot for the help!!
– ShBr