I am having trouble with this .setTimeout redirect working in safari and ios - does anyone see what i'm missing?
$(window).load(function() {
$(document).on('submit', 'form#target', function(e) {
e.preventDefault();
$.ajax({
success: function () {
window.setTimeout(function () {
window.location.href = 'http://www.example.com';
}, 2000);
}
});
});
});