Skip to content

Instantly share code, notes, and snippets.

@tangorri
Created July 5, 2013 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangorri/5933569 to your computer and use it in GitHub Desktop.
Save tangorri/5933569 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(document).ready(function() {
/*$(".nice-list-head").click(function(){
$(".nice-list-head", this).toggle();
});*/
$(".nice-list-toogler").click(function(){
var parent = $(this).parent();
var target;
$(".nice-list-selection", parent).toggle();
target.toggle();
$(this).text('c');
console.log(target);
//console.log($(".nice-list-selection", this).css('display'));
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment