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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:58:25+00:00 2026-06-10T10:58:25+00:00

I want to disable a row click for the rows based on the flag

  • 0

I want to disable a row click for the rows based on the flag value set in the columns
And the rest of the rows should be clickable and also between certain columns

The first two rows that has true should be unclickable. However, the rest of the rows should be clickable from column 1-5.

Here is the link

  • 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-10T10:58:26+00:00Added an answer on June 10, 2026 at 10:58 am

    Extract the .text() of the last cell in the row and test it:

    $('#table tr').find('td:gt(0):lt(5)').on("click", function() {
        if ($(this).closest('tr').find('td:eq(5)').text() != "true") {
            alert("hello");
        }
    })​;
    

    http://jsfiddle.net/mblase75/mEbUG/2/

    Alternatively, you can .filter out the undesirable cells before calling .on("click"):

    $('#table tr').find('td:gt(0):lt(5)').filter(function() {
        return ($(this).closest('tr').find('td:eq(5)').text() != "true");
    }).on('click', function() {
        alert("hello");
    });​
    

    http://jsfiddle.net/mblase75/mEbUG/12/

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

Sidebar

Related Questions

I have a NSTableView and I want to disable row selection. The columns of
I want to disable the button that is contained in a data list row.
I want to disable click on a certain <div> so that when you select
I want to disable the orange highlight that occurs when touching a listView row.
I have click handlers I want to apply to the rows in my table:
I am using DevExpress XtraGrid in c#.NET application. I want to disable or set
Hai all, I want to know how to disable row header in Devexpress xtragrid
I need to enable/disable a row columns of a datagridview this can be easily
I want to disable (and look disabled) some rows in a spark datagrid. I
Normally row details are show when you click on a row. I want to

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.