Last active
August 29, 2015 14:16
-
-
Save Danno040/8de1a543429d019ae26c to your computer and use it in GitHub Desktop.
For adding a custom dropdown to the main menu in SocialEngine Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function() { | |
var html = '<li class="dropdown">'; | |
html += '<a href="/entertainment" class="dropdown-toggle" data-toggle="dropdown">Entertainment <b class="caret"></b></a>'; | |
html += '<ul class="dropdown-menu">'; | |
html += '<li><a href="/entertainment/games">Games</a></li>'; | |
html += '<li><a href="/entertainment/music">Music</a></li>'; | |
html += '</ul>'; | |
html += '</li>'; | |
$('#menu ul').append(html); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment