Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery
sebatiancb
Tree Menu
in
Using jQuery
•
9 years ago
Hello, I am trying to implement a tree menu, but I have no idea to get it work fine, it's multilevel , thanks for any help
Here is my source code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery.min.js"></script>
<style type="text/css">
*{
padding:0;
margin:0;
}
#dvmenucategorias{
width:15%;
float:left;
}
#dvmenucategorias a{
color:#000;
text-decoration: none;
}
#dvmenucategorias li p{
padding:3%;
}
#dvmenucategorias li{
list-style: none;
}
#dvenccategorias{
background-color: #fbb03b;
padding:3%;
text-align: center;
}
li.level1{
background-color: #005b9f;
color:#FFFFFF;
border-bottom: 1px solid lightslategray;
}
li.level2 {
background-color: #373636;
border-top: 1px solid #FFFFFF;
color:#FFFFFF;
}
li.level3{
color:#000;
background-color: #f0f2f2;
border-top: 0;
}
li.level4{
color:#000;
background-color: yellowgreen;
border:0;
}
li.level5{
background-color: #FFFFFF;
border:0;
}
</style>
<script type="text/javascript">
$('document').ready(function() {
$('li').click(function() {
if ($(this).find(':first-child').find('ul').is(':visible')) {
$(this).find(':first-child').find('ul').hide();
}
else {
$(this).find(':first-child').find('ul').show();
}
});
});
</script>
</head>
<body>
<ul id="dvmenucategorias">
<li class="level1"><p>Vehiculos</p>
<ul><li class="level2"><p>Carros</p>
<ul>
<li class="level3"><p>Marca </p>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Chevrolet</a></p>
<ul>
<li class="level5"><p>---<a href="" class="lnkfiltro">Spark</a></p></li>
<li class="level5"><p>---<a href="" class="lnkfiltro">Cruze</a></p></li>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Mazda</a></p>
<ul>
<li class="level5"><p>---<a href="" class="lnkfiltro">Mazda 3</a></p></li>
<li class="level5"><p>---<a href="" class="lnkfiltro">Mazda 6</a></p></li>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Daewoo</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Toyota</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Hiunday</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Renault</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Audi</a></p>
<ul>
</ul>
</li>
</ul>
</li>
<li class="level3"><p>Dirección </p>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Asistida</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Hidraulica</a></p>
<ul>
</ul>
</li>
</ul>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Mecanica</a></p>
<ul>
</ul>
</li>
</ul>
</li>
<li class="level3"><p>Color </p>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Rojo</a></p>
<ul>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul><li class="level2"><p>Camiones</p>
<ul>
<li class="level3"><p>Marca </p>
<ul>
<li class="level4"><p><a href="" class="lnkfiltro">Chevrolet</a></p>
<ul>
<li class="level5"><p>---<a href="" class="lnkfiltro">Turbo </a></p></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="level1"><p>Ubicación</p></li>
<li class="level1"><p>Rango de Precios</p></li>
<li class="level1"><p>Refinar Busqueda Por</p></li>
</ul>
</body>
</html>
1
Replies(1)
sebatiancb
Re: Tree Menu
9 years ago
If someone needs it here is a link:
http://sower.com.au/demo/accordion.html
, but this is an accordion menu
Leave a comment on sebatiancb's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to sebatiancb's question
Top
Reply
{"z23018750":[14737000004465922,14737000004471177]}
Statistics
1
Replies
2507
Views
0
Followers
Tags
Cancel
menu
multilevel
tree
Actions
Permalink