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

159
Views
How do I make a type anywhere text area

I am very new to all of this. I want a user to be able to type anywhere in a text area. Wherever the cursor is when they click is where they start typing. Is this something that can be done in a textarea or is there a better way to make this happen in HTML?

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

0

It can be a way to fill your textarea with spaces and then you can type wherever you clicked on.

use JQuery :

var $contentTextarea = $("textarea[name='contents']");

var cols = Number($contentTextarea.attr("cols"));
var rows = Number($contentTextarea.attr("rows"));

for(var i = 0; i < cols; i++){
    for(var j = 0; j < rows; j++ ){
         $contentTextarea.append(" ");
    }
    $contentTextarea.append("\n");
}

check out this here for more.

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!