Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
912 B
3
Indexable
Never
<script th:inline="javascript">
									function checkColumn() {
										var checkboxes = document.querySelectorAll(".fullCheck .user_check_list");
										Array.from(checkboxes).forEach(checkbox => {
											checkbox.addEventListener('change', event => {
											console.log('Selected account sequence:');
											const targetCheckbox = event.target;

											if (targetCheckbox.checked) {
												// Checkbox is checked, perform the desired action
												// Example: Log the selected user's account sequence
												const accountSeq = targetCheckbox.getAttribute('data-account-seq');
												console.log('Selected account sequence:', accountSeq);
											} else {
												// Checkbox is unchecked
												// Perform any necessary actions
												console.log('unchecked');
											}
										});
									});
									}
								</script>