2
您好我有一个锚标记,但我想防止使用jQuery的默认行为。但没有得到确切的解决方案。你能告诉我我的代码有什么问题吗?防止默认行为使用jquery
$(document).ready(function(){ $("a[name]").click(function(event){ alert("As you can see, the link no longer took you to jquery.com"); eventpreventDefault(); }); });
o对不起,我真是太傻了。谢谢 – newdeveloper 2011-01-29 13:07:12