Skip to main content

Bug Tracker

Side navigation

#2444 closed bug (worksforme)

Opened March 02, 2008 07:46PM UTC

Closed March 27, 2008 06:02AM UTC

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;

});

Attachments (0)
Change History (2)

Changed March 18, 2008 10:38PM UTC by flesler comment:1

Try this:

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

Let me know if this solves it.

Changed March 27, 2008 06:02AM UTC by davidserduke comment:2

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.