jquery – Always leave line at the top


I'm using the DataTables plugin and I wanted a row to always be on top regardless of the ordering or the search that was done as if it had a static "position", always in first place

Does anyone know how I can do this?


There is the FixedColumns plugin, but it doesn't allow this functionality.

What you can do is put a header with two lines, the second line being the line you want to keep permanently.

This example: jsfiddle , Extracted from the fix second row question, shows this in action.

Scroll to Top