Home > Web Front-end > HTML Tutorial > css_div树型菜单展开或隐藏问题求js代码_html/css_WEB-ITnose

css_div树型菜单展开或隐藏问题求js代码_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:15:06
Original
1030 people have browsed it



我是想点击“基本操作”实现隐藏或者展开下面的“修改密码”和“密码重置”
我想求一js代码,能有大神教教麽


回复讨论(解决方案)

<dt onClick='showHide("items1-1")'><b>基本操作</b></dt><dd id="items1-1">122222333</dd><script type="text/javascript">function showHide(id){	var obj=document.getElementById(id);	if(obj.style.display=='none'){obj.style.display='';}	else obj.style.display='none';}</script>
Copy after login

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