JQuery/Javascript Reordering rows

前端 未结 8 1360
时光说笑
时光说笑 2021-02-06 06:50

I have a aspx page that looks something like this:


  Some label
  Some complex control
         


        
8条回答
  •  青春惊慌失措
    2021-02-06 07:33

    Check the jQuery TableSorter Plugin, it's very powerful it detects the underlying datatypes of the columns, and you can sort your table columns programmatically:

    $("#yourTable").tablesorter( {sortList: [[0,0]]} );  
    // This will sort "yourTable" using 
    // the first column, ascending [columnIndex, 0=ASC or 1 = DESC]
    

提交回复
热议问题