| 123456789101112 |
- $(() => {
- const $customerDropdown = $("#customer-id");
- $customerDropdown.select2({
- theme: "bootstrap-5"
- });
- const $selectAll = $("#sales-table-select-all");
- $selectAll.on("change", event => {
- const $table = $(event.currentTarget).closest("table");
- $table.find("tbody input[type=checkbox]").prop("checked", event.currentTarget.checked);
- });
- });
|