Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

166
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda