Jquery trigger 함수 Written by lalwr on 오후 10:50 in jquery with 댓글 없음 trigger() 메서드는 요소에 등록된 이벤트 핸들러만 실행시킨다. 예) <a> 요소에 click 이벤트를 적용해도 href 속성이 실행되지 않는다. Share: Read More
Jquery 숫자만 입력하기 Written by lalwr on 오후 3:19 in jquery with 댓글 없음 $("#phone").keyup(function(){$(this).val( $(this).val().replace(/[^0-9]/g,"") );} ); Share: Read More
table 행(row) 열(col) 삭제방법 jquery Written by lalwr on 오후 12:17 in jquery with 댓글 없음 - HTML table 마지막행 삭제$("#아이디 th:last").remove();- HTML table 마지막열 삭제$('#아이디 tbody tr td:last-child').remove(); Share: Read More
checkbox 전체 선택 및 해제 Written by lalwr on 오후 2:36 in jquery with 댓글 없음 if($("#abc").prop("checked")){ //input태그의 name이 chk인 태그들을 찾아서 checked옵션을 true로 정의 $("input[name=aaa]").prop("checked",true); }else{ //input태그의 name이 chk인 태그들을 찾아서 checked옵션을 false로 정의 $("input[name=aaa]").prop("checked",false); } Share: Read More