GGWEB/src/main/webapp/js/admin/fieldData.js

25 lines
684 B
JavaScript
Raw Normal View History

2022-03-02 04:35:08 +00:00
$(document).on("click", ".nav-item", function (){
const chkBox = $(this).find(".statusChkBox")[0]
chkBox.checked = !chkBox.checked;
$("[name='searchForm']").submit();
2022-02-28 07:57:03 +00:00
})
function fn_link_page(pageNo) {
2022-02-22 04:33:20 +00:00
document.searchForm.pageIndex.value = pageNo;
document.searchForm.action = "<c:url value='/admin/fieldData' />";
document.searchForm.submit();
}
2022-02-28 07:57:03 +00:00
function getCheckoxValue() {
const query = 'input[name="check1"]:checked';
2022-03-02 04:35:08 +00:00
const selectedEls = document.querySelectorAll(query);
2022-02-28 07:57:03 +00:00
let result = '';
selectedEls.forEach((el) => {
result += el.value + ' ';
});
2022-02-22 04:33:20 +00:00
2022-02-28 07:57:03 +00:00
// 출력
document.getElementById('result').innerText
= result;
}