I have a HTML table made with Javascript. http://jsfiddle.net/T9Bhm/3179/
I want to be able to scroll and keep a certain row at the top (not a header, a row). I have tried this :
$(window).bind('scroll', function () {
console.log('menuTop')
if ($(window).scrollTop() > 10) {
$('.menuTop').addClass('fixed');
} else {
$('.menuTop').removeClass('fixed');
}
});
This doesn't seem to work. I wan tthe numbers and letters to stay at the top when on scroll (the ones classed as 'menuTop'). But on scroll they all seem to fold in to one on the left hand side. The 'H' being on top.
Any ideas ?