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

205
Views
select a text from textarea and press the button to make them bold

when someone has selected text and press the bold button the selected text will be bold and not all the textarea characters.

document.getElementById("bold").onclick = function() {
  document.getElementById("textarea").style.fontWeight = "800";
}
<textarea id="textarea"></textarea>
<button id="bold">Make bold</button>

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

0

You can't style text inside of a textarea more then in your example.

But you can try this attempt with editable div: https://stackoverflow.com/a/50287002/4230037

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!