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
Release: 2016-05-16 18:26:29
Original
1196 people have browsed it




方式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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template