I load 2 tables (header and data) dynamically into a div. I want the header table to remain fixed while the data row is scrollable.
What do I have to set in these tables to accomplish this?
Or is there a better way of doing it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Better way of doing this is to use jQuery plugin jquery.fixheadertable.js
Or you can make one table that contains one row that have header only i.e
<th>and other with rows that have data only i.e<td>this is a template code.
I had tried this and this will work out your requirement.