Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

76
Vistas
Is there any way to write some text in an input tag only by triggering keyboard events?

I want to write some text in an input tag only by triggering keyboard events by programming.

I don't want to using something like

elem.value = 'some random text'

I really need to simulate keyboard to write code in this input tag. pure Javascript is my goal, but if there is a good jQuery way, I will appreciate that too!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

not sure if you're looking for the infinite monkey?

function randChar() { //generate a random character - all lower case for simplicity
  var chars = " abcdefghijklmnopqurstuvwxyz";
  return chars.substr(Math.floor(Math.random() * 27), 1);
}

(not my code)

https://jsfiddle.net/concannon/d67b6y7k/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda