Reputation: 586
i'm using wenzhixin bootstrap-table
, and when i'm loading the page for the first time the button click is triggered, but after paginate through the table (using bootstrap-table
features, the click is no longer triggered.
a sample code is at: https://jsfiddle.net/eitanmg/gsxb8645/9/
how can i get my button click triggered along with using bootstrap-table
search / pagination features?
Upvotes: 1
Views: 1353
Reputation: 6928
You can do as below:
$(document).ready(function () {
$("table").on('click', '.done_status', function () {
alert("hello!");
});
});
Upvotes: 0
Reputation: 638
I edited your code at jsfiddle it works now with following edit.
$("table").on('click', '.done_status',function () {
alert("hello!");
});
Upvotes: 1