if (document.form2.sltpuber.options[this.selectedIndex].value != "0")

解决方案 »

  1.   

    错的是{document.write(" 加减积分:<input name='pjf' type='text' id='pjf' size="3">"); }吧.
    应该是:{document.write(" 加减积分:<input name='pjf' type='text' id='pjf' size=\"3\">"); }
      

  2.   

    baiyunfei说的也是,没注意,呵呵
      

  3.   

    二位,修正后又出现:
    document.form2.sltpuber.options[this.selectedIndex].value 不是对象或者对象为空得错误。怎么会这样?
      

  4.   

    document.form2.sltpuber.options[this.selectedIndex].value
                                    ---- 你在这里用 this 干吗????
    var s = document.form2.sltpuber;
    s.options[s.selectedIndex].value;