user3287550 user3287550 - 2 months ago 4
jQuery Question

Change tr height via .css?

I'm trying to change tr height of my jquery datatable, I'm looking for a property to set in the

, but unfortunately I doesn't find nothing.

So I though to set the height of tr like this:

.css('min-height', '650px')
.css('tr height', '20px')

unfortunately the tr height isn't changed. What am I doing wrong?


if you are looking to just change the height of tr in table hen you should use this

$('#tableID tr').css('height', '200px')

or if you want to just increase the height of the tbody element then you can do this by

$('#tableID tbody tr').css('height', '20px')

Only header :

$('#tableID thead tr').css('height', '20px')