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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:12:42+00:00 2026-05-28T08:12:42+00:00

I am using a Jquery’s datatable. I have a table with id = affectedRegion.

  • 0

I am using a Jquery’s datatable. I have a table with id = “affectedRegion”. It has a column with a radio button inside it. In part, some of the styling around this radio button cell gives each row it’s height.

In a special case, I have to hide the radio button column by doing something like this

affectedRegion.fnSetColumnVis(0, false);

However, when I do this, the rows become much shorter than what I want. Since this code is shared at many other places, I would like to know if there is a way in Jquery that I can change the row height dynamically to maintain the same look and feel.

I tried the below and it doesn’t work.

$("#affectedRegion").css('height', '25px');

Thanks for your help in advance.

  • 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-28T08:12:43+00:00Added an answer on May 28, 2026 at 8:12 am

    I set up a simple jsFiddle to demo setting the row height of a table row, and it seems to work fine. I’m using Chrome, if that helps.

    I’m changing the height of the <tr> tag, if that helps.

    If you have other questions, let me know and I’ll update my answer.

    Good luck. Hope this helps.

    UPDATE Updated my fiddle here. If you have access to the index of the row to be resized, you can use jQuery’s eq function to only affect that table row in your table. I’m not sure if this helps or not, but this allows you to get away from having an id or some sort of marker class assigned to each row.

    HTML

    <table id='affectedRegions'>
        <tr id='affectedRegion'>
            <td>Hello</td>
            <td>There</td>
        </tr>
        <tr id='affectedRegion2'>
            <td>Hello</td>
            <td>There</td>
        </tr>
    </table>
    

    jQuery

    //change the height of the 2nd table row within #affectedRegions table
    // eq() is zero-based.
    $('#affectedRegions tr').eq(1).css('height', '200px');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery I want to check if checkboxes or radio button inside a div
Using jQuery, how can I find the column index of an arbitrary table cell
Using jQuery validation plugin but it has no CSV validation. I have made an
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, how do I delete all rows in a table except the first?
Using jQuery, how would you find elements which have a particular style (eg: float:
using jquery v1.3.2 and jQuery UI 1.7.1 I have 1 tab control with 3
Using jquery I have a clicking tab mechanism that are nothing but anchor tags
Using jQuery, how can I create a clone of a Row which has display:
Using jQuery, I need to select all elements that do not have a background

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.