Home >Web Front-end >JS Tutorial >js loading, reading content and showing and hiding div examples_javascript skills

js loading, reading content and showing and hiding div examples_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:00:111234browse
复制代码 代码如下:


<script> <br>function check(){ <br><br>var num = document.getElementById("choose").value; <br>alert(num); <br>if(num=="4"){ <br>document.getElementById("show").style.display="block"; <br>}else{ <br>document.getElementById("show").style.display="none"; <br>} <br>} <br></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