Here, I have one table, i want to fix that header while scrolling
JS
<script>
$('#scroll').scroll(function(){
if ($('#scroll').scrollTop() > 10){
$("thead").css({
position: 'fixed',
top: '68px'
});
}else{
$('thead').css({
position: 'static'
});
}
});
</script>
This is working Perfectly, but design is changing.
could anyone help me out.
Thanks in advance.
EDIT
position: 'fixed'try changing it to static and it might wok.