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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -