Whenever I update the table, the content above it ends up below the table. This is frustrating because the content should not be affected by the refresh. How can I resolve this issue?
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <font size="2">
<table class="table table-condensed" border="1" id="usertable"></table>
</font>
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false&libraries=geometry"></script>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary">
<input type="checkbox">Option 1</label>
<label class="btn btn-primary">
<input type="checkbox">Option 2</label>
<label class="btn btn-primary">
<input type="checkbox">Option 3</label>
</div>
</head>
<body>
<script src="js/bootstrap.min.js"></script>
<div class="alert alert-success"> <a href="#" class="alert-link">The overview of Drive-Now Munich is loading... Please wait a moment!</a>
</div>
<script type="text/javascript">
$(document).ready(function() {
//..//
$('#usertable').append(
function() {
return "<tr class=" + color + ">" +
//..//
"<tr>";
});
})
}).always(callJSON);
}, 2000);
}
$(callJSON);
});
</script>
</body>
</html>