-
[JQUERY]유용하게 써먹는 간단한 제이쿼리[tableSorter]카테고리 없음 2013. 7. 12. 19:00
ADD FILE
<script type="text/javascript" src="/path/to/jquery-latest.js"></script>
<script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script>JQUERY
$(document).ready(function()
{
$("#myTable").tablesorter();
}
);
HTML
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>danaka</td>
<td>akam</td>
<td>akama@yahoo.jp</td>
<td>http://www.akama.com</td>
</tr>
<tr>
<td>kore</td>
<td>arko</td>
<td>aerok@yahoo.jp</td><td>http://www.aerok.com</td>
</tr>
</tbody>
</table>