Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2444 closed bug (worksforme)

click with return false in Safari 2

Reported by: kof13 Owned by:
Priority: trivial Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:

Description

I can't return false onclick to prevent changing to new page in safari 2. $('#test').click(function(){

alert(123); return false;

});

Change History (2)

comment:1 Changed 12 years ago by flesler

Try this:

$('#test').click(function(e){
   e.preventDefault();
   alert(123);
});

Let me know if this solves it.

comment:2 Changed 12 years ago by davidserduke

Milestone: 1.2.31.2.4
Resolution: worksforme
Status: newclosed

I agree with flesler that should be the fix. If it fails to work (I don't have a mac to test it) then feel free to reopen the ticket with your test case and details.

Note: See TracTickets for help on using tickets.