Bootstrap Table Uncheck The Checkboxes On Page Load
Good evening all!
When working with checkboxes in Bootstrap Table created by Wenzhixin, you may have notice that on page load the checkboxes are checked by default. If you want to uncheck these checkboxes on page load of your ASP.NET MVC page, call the checkInvert method of the bootstrap table on document ready of the page such as the code below:
When working with checkboxes in Bootstrap Table created by Wenzhixin, you may have notice that on page load the checkboxes are checked by default. If you want to uncheck these checkboxes on page load of your ASP.NET MVC page, call the checkInvert method of the bootstrap table on document ready of the page such as the code below:
$(document).ready(function () { UncheckShoppingCartTable(); }); function UncheckShoppingCartTable() { $('#tblShoppingCart').bootstrapTable('checkInvert'); }
Comments
Post a Comment