Suppressing default anchor behavior in Safari with jQuery
- by Macy Abbey
Hello,
I am attempting to prevent default anchor behavior in Safari using the jQuery library. Unfortunately, the standard techniques of returning false or using event.preventDefault() do not seem to be working in Safari.
Could anyone help me with this issue?
The code I'm working with is like this:
$('#main .green-tabs a').live("click",function(event){
$('.green-tabs a').removeClass('active');
$(this).addClass('active');
event.preventDefault();
var that = this;
return LolPage(event,that);});