.val() is a function, you need to invoke it by adding ()
at its end
window.location.href = 'http://localhost/test/' + $("#choose-type").val() + '/' + $("#urlList").val();
when you use just .val
it returns a reference to the jQuery.fn.val
function and then it will be used for string concatenation which will add the function definition to the string.