I'm trying to show different tables according to what the user chooses. I have an example of a user who shared his code through the link:
The table is updated using the buttons below:
$('#btn-load').click(function(e) {
dt.load(data1);
});
$('#btn-update').click(function(e) {
dt.load(data2);
});
$('#btn-append').click(function(e) {
dt.load(data1, true);
});
$('#btn-clear').click(function(e) {
dt.clear();
});
However, my question is exactly why instead of table values being changed by button, would you like it to be changed by a dropdown? Can anyone help me tell me a function that would do this?
Thanks,