showing results for - "reload table jquery"
Carl
06 Apr 2018
1<button id="refresh-btn">Refresh Table</button>
2
3<script>
4$(document).ready(function() {
5
6   function RefreshTable() {
7       $( "#mytable" ).load( "your-current-page.html #mytable" );
8   }
9
10   $("#refresh-btn").on("click", RefreshTable);
11
12   // OR CAN THIS WAY
13   //
14   // $("#refresh-btn").on("click", function() {
15   //    $( "#mytable" ).load( "your-current-page.html #mytable" );
16   // });
17
18
19});
20</script>
21