onclick event of thead, the tfoot will go between the thead and tbody

onclick event of thead, the tfoot will go between the thead and tbody

likepowerseenlikepowerseen Posts: 2Questions: 2Answers: 0

how can I do if i click the thead tag the tfoot will go between thead and tbody tag, if i click it again the thead tag, the tfoot tag will go back under the tbody tag like in the sample in image

Answers

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    You can use jQuery or Javascript techniques to move the tfoot element. This example shows one technique.

    By default when clicking the thead table is sorted by that column. You can turn this off or let it happen its up to you. Your click event should work either way.

    Kevin

Sign In or Register to comment.