티스토리 뷰

🌈 JavaScript

체크 박스 상태 확인하기

James Wetzel 2023. 5. 16. 17:53
728x90
반응형
$("input[type='checkbox']").is(":checked")
// This method will return a boolean value, indicating whether or not the checkbox is checked.

$("input[type='checkbox']").prop("checked")
// This method will return the value of the checked property of the checkbox, which is a boolean value.

 

728x90
반응형