<select name="sub_id" onchange='location.href=aaa.htm'>

解决方案 »

  1.   

    <select name="item_id" onChange="changelocation(document.userarticle.item_id.options[document.userarticle.item_id.selectedIndex].value)">document.userarticle.item_id.selectedIndex 这就是选中了的option的序号document.userarticle.item_id.options[document.userarticle.item_id.selectedIndex].value 就是选定了的option的值,照着做就是了
      

  2.   

    <select name="sub_id" onchange='location.href=aaa.htm'>
    这个不成呀,报“错误:aaa未定义”
      

  3.   

    document.userarticle.item_id.options[document.userarticle.item_id.selectedIndex].value 就是选定了的option的值,照着做就是了
    一个select可以用两个onchange吗?
      

  4.   

    <select name="sub_id" onchange="window.open('jihua1.jsp','fr1')">
    这样可以了