10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 19:27:42 +02:00
QUESTDB_website/static/js/selectSelectAll.js

8 lines
212 B
JavaScript

function selectSelectAll_click(e) {
ctrl=$(e.target).next()
if (ctrl.prop('type') == 'select-multiple' ) {
ctrl.find("option").each(function() {
$(this).attr('selected', 'selected');
});
}
}