开发者

What is the best Jquery DataTable option?

开发者 https://www.devze.com 2023-03-29 05:25 出处:网络
I was using DataTables as my Jquery Table solution.But it keeps giving me an error, for what is I believe, an unjustified reason.So I am looking to try a different solution.Do you know of the best up-

I was using DataTables as my Jquery Table solution. But it keeps giving me an error, for what is I believe, an unjustified reason. So I am looking to try a different solution. Do you know of the best up-to-date, free Jquery DataTable solutions? The only requirement is that the solution must be able to convert an already existing HTML table into a Jquery DataTable... For various reasons, passing JSON data to the view would be just hard. I mean, there are links in some of the rows, and it would just be hard...

But if you have an开发者_StackOverflow社区y recommendations I would appreciate it.


You can do that easily: http://www.datatables.net/release-datatables/examples/data_sources/dom.html

    <script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
            $('#example').dataTable();
        } );
    </script>
</head>
<body id="dt_example">
        <div id="demo">
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
    <tr>
        <th>Rendering engine</th>

        <th>Browser</th>
        <th>Platform(s)</th>
        <th>Engine version</th>
        <th>CSS grade</th>
    </tr>
</thead>
<tbody>

    <tr class="gradeX">
        <td>Trident</td>
        <td>Internet
             Explorer 4.0</td>
        <td>Win 95+</td>
        <td class="center">4</td>
        <td class="center">X</td>

    </tr>
....
0

精彩评论

暂无评论...
验证码 换一张
取 消