JAVASCRIPT 하이퍼 링크 클릭되지 않게 하기

You can bind a click handler that returns false:
$('.my-link').click(function () {return false;});
To re-enable it again, unbind the handler:

$('.my-link').unbind('click');
Note that disabled doesn't work because it is designed for form inputs only.

jQuery has anticipated this already, providing a shortcut as of jQuery 1.4.3:

$('.my-link').bind('click', false);

And to unbind / re-enable:

$('.my-link').unbind('click', false);

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다