10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00
QUESTDB_website/static/js/selectSelectAll.js

9 lines
247 B
JavaScript
Raw Normal View History

function selectSelectAll_click(e) {
2020-01-28 10:53:37 +01:00
const ctrl = $(e.target).next()
if (ctrl.prop('type') == 'select-multiple') {
ctrl.find("option").each(function () {
$(this).attr('selected', 'selected');
2020-01-28 10:53:37 +01:00
ctrl.trigger("change")
});
}
}