Freeze header row of large table jQmobile

Freeze header row of large table jQmobile

I see some plugins for this but they are for the desktop. I need a solution for mobile.
My table is built using ajax and the header row is in a thead. How to arrange this?

John