Twitter BootStrap Confirmation not working for dynamically generated elements
Try changing your event binding slightly so it's bound for every existing and future .delete-record element using the alternate $.on
syntax.
$(document).ready(function(){
$('body').on('confirmed.bs.confirmation', '.delete-record', function() {
deleteForm($(this).attr('data-delid'));
});
});
Not knowing your page structure I opted to bind to body
, but you can bind it to any parent element of your table.