Skip to content

Instantly share code, notes, and snippets.

@matdave
Last active August 29, 2015 14:17
Show Gist options
  • Save matdave/32502ea68e43c3201e8c to your computer and use it in GitHub Desktop.
Save matdave/32502ea68e43c3201e8c to your computer and use it in GitHub Desktop.
nps menu expand
$(document).ready(function() {
$(".btn").click(function() {
if(!$(this).hasClass('close-schools')){
$( ".school-list" ).addClass("expanded");
$(this).addClass("close-schools");
}else{
$(this).removeClass("close-schools");
$(".school-list").removeClass("expanded");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment