我有一个级联参数,它工作正常,现在在最后一级我尝试使用多选,所以我隐藏了两个选项,然后得到它的ID,我做了一些脚本,但它没有工作。
选择关系是:
103---10123,10298,10345
112---10124,10278,10346
121--10103,10158,10309,10325
131--10107,10248,10292,10329
<script>
window.onload = function()
{
document.getElementById('2').style.visibility="hidden";
document.getElementById('3').style.visibility="hidden";
if(window.addEventListener)
{
document.getElementById('2').addEventListener('resize', getOrders, false);
}
else if(window.attachEvent)
{
document.getElementById('2').attachEvent("onresize", getOrders);
}
if(window.addEventListener)
{
document.getElementById('1').addEventListener('change', fire, false);
}
else if(window.attachEvent)
{
document.getElementById('1').attachEvent("afterchange", fire);
}
}
<script>