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

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

WBOY
WBOYOriginal
2016-06-21 09:15:061034browse



我是想点击“基本操作”实现隐藏或者展开下面的“修改密码”和“密码重置”
我想求一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>

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