请教一下值提示剔除虚线及参数的问题
我加的html代码如下,是一个日期到日筛选的值提示。
<script>
var form = getFormWarpRequest();
var listB = form._oLstChoices_Listbox2;
var today = new Date();
var day = today.getDate();
if(day<10) day="0"+day;
var month = today.getMonth()+1 ;
if(month<10) month="0"+month;
var year = today.getYear();
var date = year + "-" + month + "-" + day;
listB.remove(1);
listB.remove(0);
listB.removeAttribute("hasLabel");
listB.options[0].text =date ;
//listB.options[0].selected=true;
canSubmitPrompt();
</script>