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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:31:37+00:00 2026-06-08T21:31:37+00:00

I am trying to block a table row, but I am unable to do

  • 0

I am trying to block a table row, but I am unable to do so. I am using jquery plugin, blockUI.

My code:

var dis_tr = $("input[name=abc]").closest('tr')
dis_tr.block({message: null});

Can anyone help me?

  • 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-08T21:31:39+00:00Added an answer on June 8, 2026 at 9:31 pm

    The problem was that, in case of table we can’t write anything except between td elements. And we can ‘t block whole row. Instead of this, we have to block each td element. For this, I have written new functions that uses blockUI’s block/unblock functions.

    // Functions added to block/unblock table rows by using blockUI jquery library
    $.fn.block_row = function(opts) {
        row = $(this)
        height = row.height();
        $('td, th', row).each(function() {
            cell = $(this);
            cell.wrapInner('<div class="holderByBlock container" style="width:100%; height: ' + height + 'px; overflow: hidden;"></div>');
            cell.addClass('cleanByBlock');
            cell.attr('style', 'border: 0; padding: 0;')
            $('div.holderByBlock', cell).block(opts);
        })
    };
    
    $.fn.unblock_row = function(opts) {
        row = $(this)
        $('.cleanByBlock', row).each(function() {
        cell = $(this);
        $('div.holderByBlock', cell).unblock({
            onUnblock: function(cell, opts) {
                this_cell = $(cell).parent('td, th');
                this_cell.html($('.holderByBlock', this_cell).html());
                this_cell.removeAttr('style');
                this_cell.removeClass('cleanByBlock');
            }
        });
        })
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to block click on links using jQuery blockUI plugin. It's seems
I am trying to code AES using Cipher Block Chaining(CBC) mode. I am pretty
I am trying to use BlockUI in a table to have one row blocked
I'm trying to generate a table of contents from a block of HTML (not
I am trying to block the background with my two jquery modal dialogs until
In my block code I am trying to programmatically retrieve a list of products
I am trying to add a border and padding to the table row of
I am trying to show name-value pairs in a table cell as shown below
I am trying to display images vertically 5 per row using php and I
I am trying to force a table row that only contains images to be

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.