2022년 6월 30일 목요일

[javascript] checkbox 체크여부, 체크제어

체크여부

$('#checkBoxID').is(":checked");


체크하기

$('#checkBoxID').prop("checked", true );


체크해지

$('#checkBoxID').prop("checked", false );


disable

 $('#checkBoxID').prop('disabled', true)







댓글 없음:

댓글 쓰기