Test Case Boilerplate
Fork this way...
by JulianBirch
HTML
<html>
<head></head>
<body>
<table>
<thead><tr><th></th></tr></thead>
<tbody><tr><td></td></tr></tbody>
</table>
<div>TBODY is <span id='before'></span> before text insert.</div>
<div>TBODY is <span id='after'></span> after text insert.</div>
</body>
</html>
JavaScript
function tbodyIsVisible() {
return $("TBODY").is(":visible");
}
function f() {
t = tbodyIsVisible() ? 'visible' : 'not visible';
$("#before").text(t);
$("TBODY TD").html(" ");
t = tbodyIsVisible() ? 'visible' : 'not visible';
$("#after").text(t);
}
$(f);