Home >Web Front-end >JS Tutorial >Another good implementation method of secondary linkage_Form special effects

Another good implementation method of secondary linkage_Form special effects

WBOY
WBOYOriginal
2016-05-16 19:20:37795browse

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> <!-- function onselectchange(){ num=document.send.class0.options[document.send.class0.selectedIndex].value; switch(num){ case "0": document.send.class1.options.length=4; document.send.class1.options[00].text="A1"; document.send.class1.options[00].value=0; document.send.class1.options[01].text="A2"; document.send.class1.options[01].value=1; document.send.class1.options[02].text="A3"; document.send.class1.options[02].value=2; document.send.class1.options[03].text="A4"; document.send.class1.options[03].value=3; break; case "1": document.send.class1.options.length=6; document.send.class1.options[00].text="B1"; document.send.class1.options[00].value=0; document.send.class1.options[01].text="B2"; document.send.class1.options[01].value=1; document.send.class1.options[02].text="B3"; document.send.class1.options[02].value=2; document.send.class1.options[03].text="B4"; document.send.class1.options[03].value=3; document.send.class1.options[04].text="B5"; document.send.class1.options[04].value=4; document.send.class1.options[05].text="B6"; break; } } //--> </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn