高手帮忙解决一下!!~~ 试试使用document.getElementByid("id")来取得select 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <select name="ComboOption" id="combooption" style="width:200" size="1" class="FONTStyle"> </select><script language="javascript"> if(document.all.ComboField.value==0) { document.all.ComboOption.add(new Option("is",1)); document.all.ComboOption.add(new Option("is not",2)); document.all.ComboOption.add(new Option("starts with",3)); document.all.ComboOption.add(new Option("does not start with",4)); document.all.ComboOption.add(new Option("ends with",5)); document.all.ComboOption.add(new Option("does not end with",6)); document.all.ComboOption.add(new Option("comes before",7)); document.all.ComboOption.add(new Option("comes after",8)); document.all.ComboOption.add(new Option("comes before or is equal to",9)); document.all.ComboOption.add(new Option("comes after or is equal to",10)); document.all.ComboOption.add(new Option("cantain",11)); document.all.ComboOption.add(new Option("does not contain",12)); document.all.ComboOption.add(new Option("is null",13)); document.all.ComboOption.add(new Option("is not null",14)); document.all.ComboOption.add(new Option("is empty",15)); document.all.ComboOption.add(new Option("is not empty",16)); } </script> function DelTabelRow(obj){ var clickedRow=obj; clickedRow.parentNode.removeChild(clickedRow);}function AddNullInfo(){ var i=0; var newTr=FilterInfo.insertRow(); var newTd0 = newTr.insertCell(); //Set TableCell's properties newTd0.innerHTML = '<input type="button" id=\"removeBtn\" value="Remove" onClick=\"javascript:DelTabelRow(this)\">'; //只要加上这句就出错,为什么呀? var newTd1 = newTr.insertCell(); newTd1.innerHTML= '<input type="button" id="DownBtn" value="^" style="width:30px;height:25px;">'; var newTd2=newTr.insertCell(); newTd2.innerHTML='<input type=\"button\" id="UpBtn" value="V" style="width:30px;height:25px;">'; var newTd3=newTr.insertCell(); newTd3.innerHTML='<select name="RelSel"><option value="">-Null-</option><option>AND</option><option>OR</option></select>'; var newTd4=newTr.insertCell(); newTd4.innerHTML='<select name=\"KuoSel\"><option>(</option><option>((</option><option>(((</option><option>)</option><option>))</option><option>)))</option></select>';} 問個js的問題 HTML元素有事件处理函数却不执行? 推荐,这样声明javascript的参数更容易使用 如何在JS中设置表格的class为tit2? 关于onkeydown和onkeyup eval(obj.id).r 是什么意思 Jquery easyui 的有效性检查,在动态生成的元素上不起效 asp中怎样上传文件到服务器的目录下? 怎样记录一个HTML页面滚动条的位置? 请问这行代码错在哪里?(回答最全者得35分) 页面切换特效的实现 急!!关闭网页时弹出一个新窗口和鼠标指向链接时设为首页
</select>
<script language="javascript">
if(document.all.ComboField.value==0)
{
document.all.ComboOption.add(new Option("is",1));
document.all.ComboOption.add(new Option("is not",2));
document.all.ComboOption.add(new Option("starts with",3));
document.all.ComboOption.add(new Option("does not start with",4));
document.all.ComboOption.add(new Option("ends with",5));
document.all.ComboOption.add(new Option("does not end with",6));
document.all.ComboOption.add(new Option("comes before",7));
document.all.ComboOption.add(new Option("comes after",8));
document.all.ComboOption.add(new Option("comes before or is equal to",9));
document.all.ComboOption.add(new Option("comes after or is equal to",10));
document.all.ComboOption.add(new Option("cantain",11));
document.all.ComboOption.add(new Option("does not contain",12));
document.all.ComboOption.add(new Option("is null",13));
document.all.ComboOption.add(new Option("is not null",14));
document.all.ComboOption.add(new Option("is empty",15));
document.all.ComboOption.add(new Option("is not empty",16));
}
</script>
{
var clickedRow=obj;
clickedRow.parentNode.removeChild(clickedRow);
}
function AddNullInfo()
{
var i=0;
var newTr=FilterInfo.insertRow();
var newTd0 = newTr.insertCell();
//Set TableCell's properties
newTd0.innerHTML = '<input type="button" id=\"removeBtn\" value="Remove" onClick=\"javascript:DelTabelRow(this)\">'; //只要加上这句就出错,为什么呀?
var newTd1 = newTr.insertCell(); newTd1.innerHTML= '<input type="button" id="DownBtn" value="^" style="width:30px;height:25px;">'; var newTd2=newTr.insertCell();
newTd2.innerHTML='<input type=\"button\" id="UpBtn" value="V" style="width:30px;height:25px;">';
var newTd3=newTr.insertCell();
newTd3.innerHTML='<select name="RelSel"><option value="">-Null-</option><option>AND</option><option>OR</option></select>';
var newTd4=newTr.insertCell();
newTd4.innerHTML='<select name=\"KuoSel\"><option>(</option><option>((</option><option>(((</option><option>)</option><option>))</option><option>)))</option></select>';
}