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

150
Views
How to reset the textArea?

I can't display an emoji for the second time to a textarea after I have used it, either by writing using the keyboard or have inserted an emoji previously. I can't figure out why it doesn't since the first time displays the emoji in the textarea.

 let template = document.querySelector('#chat')
 let div = document.importNode(template.content.firstElementChild, true)
 let textarea = chatDiv.querySelector('.messageArea')
 let btnShowEmojis = document.createElement('button')

 btnShowEmojis.addEventListener('click', () => {
    // Test
    textarea.innerText = String.fromCodePoint(0x1f600)
    // Also tried with textContent like
    // textarea.textContent = String.fromCodePoint(0x1f600)
  })
 // Empty the text content
 textarea.innerText = ''
 // Or
 // textarea.textContent = ''
about 4 years ago · Juan Pablo Isaza
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!