I'm becoming mad with some simple javascript stuff.
I need a simple javascript to test the offsetHeight of a table to dinamically set its div container.
I can get the correct value in tableHeight , but the "if" conditions do not work..
Here the code:
var tableHeight = parseInt(document.getElementById("tableData").offsetHeight);
if ( tableHeight>250 )
{
document.getElementById("tableContainer").style.height = "250px";
}
else
{
BLABLBLABLA
}
Any suggestion? Thanks guys