HTML代码:
\
${TimeLimitmr.match_rule_name}
" />
" />
${istimeLimitmr.match_rule_name}
JAVASCRIPT代码:
function addTache(){
var len= document.getElementById("allTimeLimitmr").length;
for(var i=0;i
var option = document.getElementById("allTimeLimitmr").options[i];
if(option.selected == true && option.index!=0){
var newoption = document.createElement('option');
newoption.value = option.value;
newoption.text = option.text;
document.getElementById("select").add(newoption);
}
}
}
function removeTache(){
var len= document.getElementById("select").length;
for(var i=0;i
var option = document.getElementById("select").options[i];
if(option.selected == true && option.index!=0 ){
var tempoption = document.getElementById("select").options[i];
document.getElementById("select").options[i].removeNode(true);
}
}
}
function submitTache(){
var len = document.getElementById("select").length;
var formobject = document.getElementById("alarmRuleForm");
for(var i=0;i
var option = document.getElementById("select").options[i];
if(option.index!=0 ){
var actiontype= "0";
var input = document.createElement("");
input.value=option.value;
formobject.insertAdjacentElement("beforeEnd",input);
}
}
formobject.submit();
}
posted on 2009-05-31 09:14 小菜毛毛 阅读(2423) 评论(1) 编辑 收藏 所属分类: HTML+div+css实践