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

323
Views
How to fill <textarea> with text?

im trying to fill with text following textarea:

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

I tryed following codes but nothing worked for me, am i missing something?

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

or

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

or

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

If it help i can post wesite link with this textarea i want to fill

Thanks, Peter

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

0

You can use This Code .

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

You can define the content with innerHTML like this :

 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!