2011-09-01 44 views
0

HTML:< td class="ewPointer" onmousedown="ew_Sort(event,'sampple.asp?order=brgy%5Fid&amp;ordertype=ASC',1);">如何使用jQuery禁用onmousedown函數?

我只是想禁用onmousedown函數,並將其替換爲我的jquery函數。

我用這段代碼但沒有工作。

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

有沒有辦法?

感謝

(我使用的源頁面在我的AJAX功能。)

回答

3
$('.ewPointer').removeAttr('onmousedown'); 
+1

哈,+1爲-2秒! –