马上结帖!select语法问题。 if (document.form2.sltpuber.options[this.selectedIndex].value != "0") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 错的是{document.write(" 加减积分:<input name='pjf' type='text' id='pjf' size="3">"); }吧.应该是:{document.write(" 加减积分:<input name='pjf' type='text' id='pjf' size=\"3\">"); } baiyunfei说的也是,没注意,呵呵 二位,修正后又出现:document.form2.sltpuber.options[this.selectedIndex].value 不是对象或者对象为空得错误。怎么会这样? document.form2.sltpuber.options[this.selectedIndex].value ---- 你在这里用 this 干吗????var s = document.form2.sltpuber;s.options[s.selectedIndex].value; 急!!!新手求助。 JavaScript中的函数参数传值问题? 请问怎么用js来追加值到表单中? 求一个去掉标签内字符串的首尾空格的正则表达式. replace函数疑问 2个多选下拉框问题 一个字符问题,弄了一晚上,帮帮忙! 怎样将一组复选框定义为一个数组类型 如何判断一个输入框里的内容是普通字符还是汉字? 怎样取得字符串的长度? 想在一个页面中的右下角放一个层,做一个弹出窗口,它的位置随用户的屏幕的大小而改变,怎样写? selecttree(如何在选子菜单的同时把它上面的所有父菜单都选上)
应该是:{document.write(" 加减积分:<input name='pjf' type='text' id='pjf' size=\"3\">"); }
document.form2.sltpuber.options[this.selectedIndex].value 不是对象或者对象为空得错误。怎么会这样?
---- 你在这里用 this 干吗????
var s = document.form2.sltpuber;
s.options[s.selectedIndex].value;