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

250
Views
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 answers
Answer question

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