Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:2 Changed 5 years ago by davidserduke
- Status changed from new to closed
- Resolution set to worksforme
- Milestone changed from 1.2.3 to 1.2.4
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Try this:
$('#test').click(function(e){ e.preventDefault(); alert(123); });Let me know if this solves it.