Home >Web Front-end >JS Tutorial >Select implementation code to control web page content to be hidden from display_form effects

Select implementation code to control web page content to be hidden from display_form effects

WBOY
WBOYOriginal
2016-05-16 18:26:291195browse




方式1 方式1 方式1

Method 1 Method 1 Method 1
方式2 方式2 方式2

Method 2 Method 2 Method 2
<script> <BR>function setChange() <BR>{ <BR>if (document.f.selfs.value == "1") <BR>{ <BR>document.all.tb1.style.display = "block"; <BR>} <BR>else <BR>{ <BR>document.all.tb1.style.display = "none"; <BR>} <BR>if (document.f.selfs.value == "2") <BR>{ <BR>document.all.tb2.style.display = "block"; <BR>} <BR>else <BR>{ <BR>document.all.tb2.style.display = "none"; <BR>} <BR>} <BR></script> The judgment method can also be changed to inequality
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