开发者_如何转开发e.preventDefault()
is not working in my IE6. Could you please provide some code to make it work in IE too?
I am using this function not anchor tag but on an image tag, so whenever somebody clicks on an image he should be ablt o drag over the image
in place of e.preventDefault()
you could also return false;
at the end of the code like this,
$('a').click(function(){
// other codes
return false;
});
Use this:
return false;
instead of e.prevendefault();
Try adding e.stop() or returning false at the end of your function.
精彩评论