Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
How to break line in text area using $scope angularjs

I want to use text area for chat input box, because its resizable, in that I want some prefilled texts to be there, like

HI Jhon,
Thanks for contacting us....

I want to give new line after the text in textarea. My code-

$scope.message = "Hi "+$scope.firstName+ ",Thanks for contacting us....... ";

I tried, using break tag but that did'nt worked

 <textarea id="typeMessageBox" placeholder="Write here..." type="text submit" ng-model="message"></textarea>

How can I do this ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use \n instead of break tag.

eg: $scope.message = "Hi "+$scope.firstName+ ",\n Thanks for contacting us....... ";

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!