JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://mottie.github.com/tablesorter/js/jquery.tablesorter.js"></script>
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.default.css">
<table class="container-content" align="center" id="tableUserByAppli">
<thead>
<tr class="container-title">
<th>
<button id="btnAppli">
Update
</button>
Application
</th>
<th>
Users
</th>
</tr>
</thead>
<tbody>
<tr>
<td>1276</td><td class="resultats">259</td>
</tr>
<tr>
<td>MY_APP</td><td class="resultats">71</td>
</tr>
<tr>
<td>1862</td><td class="resultats">56</td>
</tr>
<tr>
<td>3300</td><td class="resultats">24</td>
</tr>
</tbody>
</table>
JavaScript
$(function()
{
$("#btnAppli").click(function()
{
alert("test");
//ajaxUpdateUsersByAppli;
});
// dynamically set table to sortable (tablesorter)
$("table").addClass("tablesorter");
$("table").tablesorter({
sortReset : true
});
});