본문 바로가기
개발자의 삶/Web(html, script, css) 기초

event.preventDefault()

by 나.R.D.(Rule Destoryer) 2014. 9. 23.



$(document).ready(function() {

$('#id').click(function(event) {

event.preventDefault();

}

}

 




참고 : http://ismydream.tistory.com/98

반응형

'개발자의 삶 > Web(html, script, css) 기초' 카테고리의 다른 글

[CSS] div 태그 안에 2개 태그 좌/우 정렬과 text 세로 정렬하기  (0) 2015.08.04
[sciprt] form 가져오기  (0) 2014.11.21
[script] 브라우저 체크  (0) 2014.10.06
팝업 url 변경하기  (0) 2014.09.25
Elements 선언 규칙  (0) 2014.09.22
typeof undefined  (0) 2014.09.15
jQuery 와 prototype 충돌  (0) 2014.09.05
onload  (0) 2014.09.03

댓글