0
0
Fork 0
EnglishPal/app/static/js/checkboxes.js

6 lines
220 B
JavaScript
Raw Normal View History

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