急救,立即给分,怎么将
中的option的value删掉 我用这个删掉:(addedcar是select的name)
theform.addedcar.options.remove(theform.addedcar.selectedIndex);
发现虽然网页中看到的<select>中,已经没有了被删掉的值,但是提交后,被删掉的值实际还存在:
for(i=0;i<theform.addedcar.options.length;i++)
{
theform.sCarNos.value = theform.sCarNos.value + theform.addedcar.options[i].text + ';'
}
我应该怎么得到实际剩余的值??