I use this code for a redirection form when selecting a different jersey from the select input but while the JSfiddle works at my site there is no redirection from the window.location command.
https://jsfiddle.net/giorgoskey/95k1tc0b/4/
function populateSecondTextBox() {
var p = document.getElementById('your_name');
var txt = document.getElementById('txtFirst');
p.textContent = txt.value;
}
function populateNumberTextBox() {
var p = document.getElementById('your_number');
var txt = document.getElementById('txtSecond');
p.textContent = txt.value;
}
var goBtn = document.getElementById("goBtn");
var shirts = document.getElementById("shirts");
goBtn.onclick = function() {
window.location = shirts.value;
}