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 5937173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:30:06+00:00 2026-05-22T15:30:06+00:00

As you know, when a user double-click somewhere, Explorer tries to select the nearest

  • 0

As you know, when a user double-click somewhere, Explorer tries to select the nearest objects (such as text, table-row etc.) like the picture below:
enter image description here

User can:

  • select any text with one-click

User can’t

  • select any object with double-click (in other words, when the user double-clicks on the list, jquery should deselect selected area)

So how can I do this? Hope it’s clear.

Note: I use double-click operation to enter the item.

  • 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-05-22T15:30:07+00:00Added an answer on May 22, 2026 at 3:30 pm

    I forgot, this is one of those edge cases where the default action can’t be cancelled in the event. In that case, you might want to use the CSS approach for Firefox and Chrome:

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

    And for Opera/IE:

    $("#mytable td").prop("unselectable", "on");  // jQuery 1.6+
    $("#mytable td").attr("unselectable", "on");  // jQuery 1.5-
    

    If you want the user to still be able to drag-select, you might want to work in a solution like this:

    $("#mytable td").bind("dblclick", function () {
        var $this = $(this);
        $this.prop("unselectable", "on").css({ 
            "moz-user-select" : "none", 
            "-webkit-user-select" : "none"
        });
    
        window.setTimeout(function () {
            var $this = $(this);
            $this.prop("unselectable", "").css({ 
                "moz-user-select" : "", 
                "-webkit-user-select" : ""
            });
        }, 0);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In text fields of my JSP, I wish to know whether user is typing
I'm working on a text editor. When the user double-clicks on a specific <div>
I'm trying to update our installer so a user can simply double-click on a
I want to check when the user double click on applictaion icon that no
I know that user agents are one indicator, but that's easy to spoof. What
I know the user of my app has a local file named c:\sourcefile.cs, I
I know that user accounts in Windows 7 are limited by default, so a
I have little question about how web browser retrieve webpage? I know this User
Does anyone know what end user information a developer receives from Apple regarding a
I need to know when the user finishes editing a cell in an NSTableView.

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.