728x90
    
    
  반응형
    
    
    
  $('#dataTable tr').on({
	mouseenter: function() {
    	$(this).addCalss("checkedLine");
	},
    mouseleave : function() {
     	$(this).removeClass("checkedLine");
    }
});
.on() 안에 이벤트를 여러개 넣을 수 있다.
.on() 함수 형식
$(selector).on( evnet, childSelector, data, function )728x90
    
    
  반응형
    
    
    
  'Front > JS & jQuery' 카테고리의 다른 글
| [js] .pop() (0) | 2023.02.20 | 
|---|---|
| [js] location.reload() (0) | 2023.02.17 | 
| [js] switch문 case 여러개 (0) | 2023.02.13 | 
| [jQuery] get disabled selectbox value / 비활성화된 셀렉트박스의 값 넘기기 (0) | 2023.02.10 | 
| [js] String.includes ( 문자열 포함 체크 ) (0) | 2023.02.04 |