Use the jQuery ready () event:
$(document).ready(function() {
$('#sampleTable').hide();
}
<edit> It seems impossible to trigger a finished event on any other object than the document, my bad </edit>
This is an option if you are talking about an event raised after a successful Ajax request:
$('#sampleTable').ajaxComplete(function() {
$(this).hide();
});
Or just copy the style of the displayed table: none; ...
source
share