I followed @koala_dev\'s code in this post to try to lock the first column s my table scrolls horizontally. The code unfortunately has no effect on my table. I was wondering
$('#table') means your finding element by id table.
$('.table') means your finding elements by class table.
These are the CSS selectors you used in css.
In your case, your table had id table so you can select that table using $('#table').
And you don't have any html elements using class table, so you'll get nothing when you select using $('.table').