event.preventDefault() and IE
I am using jquery 1.4.1.min.js
I just discovered that
event.preventDefault() causes errors under IE 8.
Thanks to Google I found this work around.
- if(event.preventDefault){
- event.preventDefault();
- }else{
- event.returnValue = false;
- };
Is there a more elegant way to handle this?