jquery - Retain height of 'tr' of table after deleting first col -


i'm working on table first col should deleted dynamically using jquery. after removal of first col, tr height adjusting according content.

i want tr height same after removal of first col. please suggest answer.

this code i'm using remove first col

$(document).ready(function(){     $('.remove tr').each(function(){   $(this).find('td:first-child').remove();   $(this).find('th:first-child').remove();     }) }) 

please see fiddle

add line-height:0px, width , height in css following:

td,th{    border:1px solid #ccc;    line-height:0px;    height:40px;    width:100px;   } 

see updated fiddle : demo hope helps.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -