你是想把当前选中的值然后用来作地址吗.
那你要是想改变地址,是
onchange="location.href='pic_add.asp?MID="+document.cform.id.value+"'" 

解决方案 »

  1.   

    document.cform.id.value
    id是特殊关键字,如果使用它做input的name
    那么访问时使用document.cform.elements['id'].value
      

  2.   

    <select name="lid" id="lid" onchange="location.href='pic_add.asp?MID="+document.cform.lid.value+"'"  >   但是还是出错,为什么?
      

  3.   

    <select name="lid" id="lid" onchange="location.href='test.htm?id='+this.options[this.selectedIndex].value;">   
    <option value="1">1</option>
    <option value="2">2</option>
    </select>select中的选项只能用selectname.options[selectname.selectedIndex].value的形式读取和设置.
      

  4.   

    你的是未结束字符量错误,但是对于用ID作ID也是有问题<html>
    <head>
    <title>无标题</title>
    <head>
    <body>
    <select onchange='alert("location.href=\"pic_add.asp?MID="+this.options[this.selectedIndex].value+"\"")';>
    <option value =0>0</option>
    <option value = 1>1</option>
    </select>
    </body>
    </html>
    <html>
    <head>
    <title>无标题</title>
    <head>
    <body>
    <select id=lid onchange='alert("location.href=\"pic_add.asp?MID="+this.options[lid.selectedIndex].value+"\"")';>
    <option value =0>0</option>
    <option value = 1>1</option>
    </select>
    </body>
    </html>