Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I'm working on the web App that work fine with desktop but have a problem with iPad devises safari browser it opens a new tab every time i select an option in a dropdownlist box.This code worked but stopped other controls from working.
JavaScript
$("a").live(function (event) {
    event.preventDefault();
    window.location = $(this).attr("href");
});

I tried changing the live() to on() but does not work any more please help.
Posted
Updated 3-Jun-15 1:39am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900