Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7845401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:12:39+00:00 2026-06-02T17:12:39+00:00

I have a table on my web page that have checkboxes on them. I

  • 0

I have a table on my web page that have checkboxes on them.
I have jquery code that allows me to shift click to check multiple rows for editing/removal.
But when I shift click to select a range all of the text inside the range gets highlighted.

Is there any way using jquery or css to stop the text from being highlighted?

–EDIT–

    HTML code
...
<tbody>
  <tr>
    <td>
      <input type="checkbox">
    </td>
    <td>
      <div class="cam_ip">192.168.200.78</div>
    </td>
  </tr>
  <tr>
    <td>
      <input type="checkbox">
    </td>
    <td>
      <div class="cam_ip">192.168.200.250</div>
    </td>
  </tr>
</tbody>

There can be x amount of rows.
The jquery works when I click a row, that row is marked as an anchor, then when I shift click on another row it is marked as anchorrange, then a function is called which will loop through each row inside the range making it checked.
The side effect of using e.shiftClick(); is that all the text within the range gets highlighted. I need to stop this side effect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T17:12:41+00:00Added an answer on June 2, 2026 at 5:12 pm

    CSS version

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    

    also a possible related question to How to disable text selection highlighting using CSS?

    Year later edit (integrating from comment):

    Colleague pointed this out Is there a way to make text unselectable on an HTML page? – use unselectable="on" on whatever you want not selectable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page that uses jquery ajax to grab the table markup
The Scenario I have a table on a web page that is dynamically generated
I have a dynamic table in my web page that sometimes contains lots of
I have a simple asp.net web page that contain a table with about 5
I have a web page that allows users to insert form input objects with
I have a web page that I created with html tags(form and table) and
I have a table that stores the page hits on a web application, storing
I have a web page that has an HTML table generated by an ASP.NET
I need to create a table on a web page that has two rows.
I have a web page that shows a table of data. My page has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.