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

  • Home
  • SEARCH
  • 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 3722620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:58:14+00:00 2026-05-19T05:58:14+00:00

I am trying to use BlockUI in a table to have one row blocked

  • 0

I am “trying” to use BlockUI in a table to have one row blocked out when a user already selected something. I am able to block out all other elements on the page except anything in the table or the table itself. Has anyone else run into this issue or have any suggestions on how to solve?

  • 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-19T05:58:16+00:00Added an answer on May 19, 2026 at 5:58 am

    According to this forum post:

    Blocking table cells may work in some browsers but in won’t work
    reliably in an x-browser environment. The blocked element needs to be
    an element that can have a relative position, and that is not true of
    TRs and TDs. Further, the “block” overlay (a div) is appended to the
    blocked element, and appending a div to a table is not valid. If you
    need to block a table, wrap it in a div and block that div instead.
    If you need to block a table cell, wrap the cell contents in a div and
    block that div instead. If you need to block a row, block each TD’s
    content div.

    Basically, you could embed your td‘s content inside another div, which can be blocked and then call block() on all of those divs instead:

    HTML:

    <table>
        <tr>
            <td><div class="row">Row 1 Col 1</div></td>
            <td><div class="row">Row 1 Col 2</div></td>
        </tr>
        <tr><td>Row 2 Col 1</td><td>Row 2 Col 2</td></tr>
        <tr><td>Row 3 Col 1</td><td>Row 3 Col 2</td></tr>
    </table>
    

    JavaScript:

    $("tr:eq(0) td > div.row").block({
        message: null
    });
    

    I’ve applied a class row to each td‘s content so that I can call block() on those elements instead. The selector selects the first trs tds divs with class “row.”

    Here’s a working example: http://jsfiddle.net/yWwR5/ (The large amount of code up front is just the BlockUI plugin).

    You could follow this strategy (as outlined in the forum post) for any element that’s part of the table.

    Edit: If you can’t edit the HTML for some reason, you could wrap the contents of each td in the div with JavaScript:

    $("tr td").contents().wrap("<div class='row' />");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the jQuery BlockUI Plugin to block a jQuery dialog while
I am trying use Google Maps for my work; I have downloaded an example
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Hi I'm trying use a datepicker on a field I have. I'm trying to
I have been trying use the edit_post_link() function to contain an image. All of
Trying to use records with the cursor and later index by table in the
I am trying to use BlockUI with jQuery's hide, however, not everything's going to
I have a regex that I'm trying use to validate against strings. Trying to
I have a 3rd party DLL that I am trying to use in a
I am trying use Thread but i have some problem (I am beginner at

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.