How To The Get Index Of Selected Row Object In Bootstrap Table
Hello and good evening.
Just sharing a snippet on how to get or retrieve the index of a selected row object given that you're working on the Bootstrap-Table developed by Wenzhixin. This assumes that you need to capture the index of the click-row.bs.table event.
Sample Fiddle: Get Index Of Selected Row Object In Bootstrap Table
Cheers!
Just sharing a snippet on how to get or retrieve the index of a selected row object given that you're working on the Bootstrap-Table developed by Wenzhixin. This assumes that you need to capture the index of the click-row.bs.table event.
$('#tblBillableSummary').on('click-row.bs.table', function (e, row, $element) { var index = $element.data('index'); });
Cheers!
Comments
Post a Comment