Automatic line breaks in a TextArea?

I need automatic line breaks for a TextArea.

Is something like this possible with HTML or JavaScript or JQuery?

Can someone please help me?

   <div class="col-xs-12">                                                        <div class="form-group">                                                            <textarea class="form-control" style="width: 685px; height: 40px;" id="expanding-textarea_1" name="Aktueller_Aufenthaltsort" required>{if $pdf}{$values.Aktueller_Aufenthaltsort|nl2br}{/if}</textarea>                                                        </div>                                                    </div>
(3 votes)
Loading...

Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Chris102004
1 year ago

Words count

https://www.geeksforgeeks.org/how-to-make-a-word-count-in-textarea-using-javascript/

Then when words larger than 10 add a “\n” to textarea.

Chris102004
1 year ago
Reply to  maetin944

What’s wrong with you?

There’s code as it is done!

Reading helps – code doesn’t fall into the lap!