select跳转其他页面
两段代码,简单修改:
<select onchange=”changePage(this.value)”>
<option value=”1″>1</option>
</select>
JS小函数:
<script type=”text/javascript”>
function changePage($value){
location.href=“http://www.**.com/” + $value + “.html”;
}
</script>
两段代码,简单修改:
<select onchange=”changePage(this.value)”>
<option value=”1″>1</option>
</select>
JS小函数:
<script type=”text/javascript”>
function changePage($value){
location.href=“http://www.**.com/” + $value + “.html”;
}
</script>