Last active
August 29, 2015 14:04
-
-
Save dstyle0210/9edb8f8770bc37759444 to your computer and use it in GitHub Desktop.
a의 href가 있어도 실행하지 않는 구문. return false;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //jQuery Extend unClick : dstyle | |
| //href가 있을때 이벤트가 없어지도록 처리 | |
| (function($){ | |
| $.fn.unclick = function(){ | |
| this.each(function(n,m){ | |
| m.onclick=function(){ | |
| return false; | |
| } | |
| }); | |
| return this; | |
| }; | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment