开发者

How to disable the onmousedown function using jQuery?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜