Home >Web Front-end >HTML Tutorial >jquery table paging_html/css_WEB-ITnose
New to jquery, every time you load data in a page, you need to overwrite the previous row with new row content. Is there a way to directly overwrite it? Instead of deleting everything first and then appending the added ones. Can you keep it every time you overwrite it? The content of the header means that the content of the header is not covered.
Please give me a simple and clear way to write it.
Give you an idea , instead of overwriting, first write out the table body corresponding to each table header, and then when the first table header is clicked, the other table bodies will add hidden styles. Similarly, when the second table header is clicked, it will be removed. Hidden styles Add hidden styles to other watch bodies.
Generally, the original content is deleted first and then the content of the new page is appended. Of course, the header can be retained, and only the content can be replaced.
Generally, the original content is deleted first and then the content of the new page is appended. Of course, the header can be retained, and only the content can be replaced.
Could you please tell me how to write it? The specific statement... keep the table header, should I use th instead of tr?
Let me give you an idea, not overwrite but first Write out the table body corresponding to each table header, and then when you click on the first table header, add hidden styles to other table bodies. Similarly, when you click on the second table header, remove the hidden styles for other table bodies. Add hidden styles.
Why are there other table headers? There is only one table in total. Ajax paging... Big brother... ajax new content overwrites the old content...