Categories
September 26, 2024
Redirect Map Page 6
jQuery(document).ready(function($){var_redirects=[{option_1:"",option_2:"",url:""},];$('# #redirect-request').on('click',function(event){event.preventDefault();var select1Value=$('# #select1').val();var select2Value=$('# #select2').val();var matchedRedirect=null;$.each(_redirects,function(index,redirect){if(redirect.option_1===select1Value&&redirect.option_2===select2Value){matchedRedirect=redirect.url;return!1}});if(matchedRedirect){window.location.href=matchedRedirect}else{alert('No matching URL found for your selections.')}})})



