Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- /*
- Copyright (c) 2008-2014 Sevvlor.co.uk - All rights reserved
- */
- $(function(){
- $('.dropdown').on('click', function(){
- if( $(this).children('ul').is(':visible') ) {
- $(this).children('ul').slideUp('fast', function(){
- $(this).children('ul').hide();
- });
- } else {
- if ($('.dropdown ul').is(':visible')){
- $('.dropdown').children('ul').slideUp('fast', function(){
- $('.dropdown').children('ul').hide();
- });
- }
- $(this).children('ul').slideDown('fast', function(){
- $(this).children('ul').show();
- });
- }
- });
- });
- </script>
- .dropdown li {
- float: none;
- color: white;
- font-weight: 100;
- }
- .dropdown li > a {
- color: white;
- text-decoration: none;
- padding-bottom:4px;
- margin-bottom: 3px;
- border-bottom: #6e6e73 1px solid;
- padding-left: 35px;
- }
- .dropdown ul {
- display: none;
- }
- <li class="dropdown"><a href="javascript:void(0)"><i class="icon_ul"></i> BLABLA</span></a>
- <ul>
- <li><a href="{}">{JAJJA}</a></li>
- </ul>
- </li>
Advertisement
Add Comment
Please, Sign In to add comment