mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-05 13:43:56 +01:00
12 lines
308 B
JavaScript
12 lines
308 B
JavaScript
function selectSelectAll_click(e) {
|
|
const ctrl = $(e.target).next()
|
|
selectSelectAll(ctrl)
|
|
}
|
|
function selectSelectAll(target) {
|
|
if (target.prop('type') == 'select-multiple') {
|
|
target.find("option").each(function () {
|
|
$(this).prop('selected', true);
|
|
target.trigger("change")
|
|
});
|
|
}
|
|
} |