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?
$(document).ready(function () {
$(document).on("click",".done_status",function () {
alert("hello!");
});
});
You need to bind the click event on the button so it can get detected by DOM.
Here is a fiddle