how to redirect to another page using jquery ajax code example Example: jquery redirect to another webpage $(location).attr('href', 'https://google.com');