jQuery table sort

后端 未结 15 2814
温柔的废话
温柔的废话 2020-11-22 09:00

I have a very simple HTML table with 4 columns:

Facility Name, Phone #, City, Specialty

I want the user to be able to sort by Faci

15条回答
  •  温柔的废话
    2020-11-22 09:55

    We just started using this slick tool: https://plugins.jquery.com/tablesorter/

    There is a video on its use at: http://www.highoncoding.com/Articles/695_Sorting_GridView_Using_JQuery_TableSorter_Plug_in.aspx

        $('#tableRoster').tablesorter({
            headers: {
                0: { sorter: false },
                4: { sorter: false }
            }
        });
    

    With a simple table

    提交回复
    热议问题
    User Verified Recently Accessed