simply put I can’t get any redirection to work after my ‘insert_callback’, here is my code
$('#email').focusout(function() {
var email = $('#email').val();
$.post('process_info.php', { email: email }, function(callback) {
$('#email_feedback').html(callback);
if(callback == 'awesome') {
$('#submit').removeClass('hidden');
$('#quiz_sub').submit(function() {
$.post('submit_info.php', { email: email }, function(insert_callback) {
//want redirection to happen here
});
});
}
});
});
any help is greatly appreciated. Thanks!
or How to redirect to another webpage in JavaScript/jQuery?
Edit: it look like your callback is not executed… alert it or log to console like Rosario suggests, is not working, continue debug: