option标签选中之后进行页面跳转

如图:select标签中添加:

onchange="location.href=this.options[this.selectedIndex].value;"

上面方法为当前页面刷新跳转,另外也可以新窗口跳转:

onchange="window.open(this.options[this.selectedIndex].value)"

猜你喜欢

转载自blog.csdn.net/PhilipJ0303/article/details/98030427