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

261
Vistas
I want to select text on div with keyboard(Just like we select text with mouse)

I have a requirement where I need to select bold text (or any other subtext in following parragraph) using only keyboard. Is it possible to do so?

The reading text on the

following page is longer than usual and is used as the basis for all the questions and examples in this section. However, in the real IELTS test the 40 or 50 questions will be based on three texts not just one, and the questions will not test your understanding of a point in the text more than once, as they may do here.

EDIT::

I have added tabindex to div and it gets the focus now, but any Idea how I can select the text using "Shift+ left/right arrow"?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

First put that bold text in span and give a class and for

both must be different from each other

 <p>The reading text on the
<span class="Selectonly" unselectable="on"><b>following page is longer than usual and is used as the basis for all the questions and examples in this section</b></span></p>

or

And use user-select element

.Selectonly{
   user-select: none;
}
about 4 years ago · Santiago Trujillo 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