开发者

How to disable the onmousedown function using jQuery?

开发者 https://www.devze.com 2023-04-01 13:33 出处:网络
HTML:<td class=\"ewPointer\" onmousedown=\"ew_Sort(event,\'sampple.asp?order=brgy%5Fid&amp;ordertype=ASC\',1);\">

HTML: <td class="ewPointer" onmousedown="ew_Sort(event,'sampple.asp?order=brgy%5Fid&amp;ordertype=ASC',1);">

I just want to disable the onmousedown function and replac开发者_高级运维e it with my jquery function.

I used this code but didn't work.

$('.ewPointer').live('click',function(e) {e.preventDefault(); });

Is there a way?

Thanks

(I'm using that source page in my ajax function.)


$(".ewPointer").removeAttr("onmousedown");

http://jsfiddle.net/SZaw5/


$('.ewPointer').removeAttr('onmousedown');
0

精彩评论

暂无评论...
验证码 换一张
取 消