EnglishPal/app/static/js/checkboxes.js

6 lines
220 B
JavaScript
Raw Normal View History

2024-07-04 10:06:44 +08:00
function toggleCheckboxSelection(checkStatus) {
// used in userpage_post.html
const checkBoxes = document.getElementsByName('marked');
checkBoxes.forEach((checkbox) => { checkbox.checked = checkStatus;} );
}