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

321
Views
¿Cómo llenar <textarea> con texto?

estoy tratando de llenar con texto siguiente textarea:

 <textarea aria-invalid="false" class="form-control" rows="5" id="domains" name="domains" placeholder="" style="text-align: left;"></textarea>

Intenté seguir los códigos pero nada funcionó para mí, ¿me estoy perdiendo algo?

 content.document.getElementsByName("domains")[0].value = "TESTING";

o

 document.getElementById("domains").innerHTML="TESTING";

o

 document.getElementById("domains").value = "TESTING";

Si ayuda, puedo publicar un enlace al sitio web con esta área de texto que quiero llenar

gracias, pedro

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

0

Puedes usar este código.

 var textarea = document.getElementById("textareaTest"); textarea.value = "Hello World!";
 <textarea name="textareaTest" id="textareaTest" cols="30" rows="10"></textarea>

about 4 years ago · Juan Pablo Isaza Report

0

Puede definir el contenido con innerHTML así:

 document.getElementsByName('domains')[0].innerHTML = 'TESTING'
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!