Bootstrap table select all remove all using checkbox

After doing a decent amount of searching and attempting different solutions, i still cant figure out how to effectively set up a select all select none list of items. use case… i have a list of items that i display in a table with a checkbox. I want to be able to select all/remove all using a checkbox in the header… as well as remove a single item or add a single item (to an array/session) using that rows checkbox. has anyone accomplished this and if so can you please share how. the array/session hold the ID # of the selected items, which will be passed to another page not the database. the user will then fill out a form to be applied to each item… the list of items and form will then be passed to the database.

Community Page
Last updated: