Just my dev story.

[jQuery] 체크박스 체크시 , 체크 해제시 이벤트

노력은배신안함 2020. 2. 20. 15:49
반응형
* 간단한 예제입니다.

$(document).ready(function(){
     $("#checkBoxId").on('change',function(){
         if($("#checkBoxId).is(':checked')){
             alert("check on");
         }else{
            alert("check off");
         }
  });

});​

* 간단한 예제입니다.

 

 

 

반응형