views:

68

answers:

3

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

+1  A: 

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;
});
Reigel
http://stackoverflow.com/questions/3393399/jquery-i-have-an-issue-when-drag-a-part-of-an-image-to-select-its-parts is my actual problem
john
A: 

Try adding e.stop() or returning false at the end of your function.

Wolax
http://stackoverflow.com/questions/3393399/jquery-i-have-an-issue-when-drag-a-part-of-an-image-to-select-its-parts is my actual problem
john
+1  A: 

Use this:

return false;

instead of e.prevendefault();

Manie
http://stackoverflow.com/questions/3393399/jquery-i-have-an-issue-when-drag-a-part-of-an-image-to-select-its-parts is my actual problem
john