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

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

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 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