下拉菜单select选项自动跳转的方法

<select onchange="if (this.value) window.location.href=this.value">
    <option value="">Pick one:</option>
    <option value="/foo">Foo</option>
    <option value="/bar">Bar</option>
</select>

参考资料:
https://stackoverflow.com/questions/5150363/onchange-open-url-via-select-jquery