$(document).ready(function() {
  $ (".project").each(function(i) {
    $(this).click(function() {
      clickedButton = $(this).attr("id");
      buttonId = ("#").concat(clickedButton)
      chosenProject = (".").concat(clickedButton)
      clickedButtonClass = ("pick-").concat(clickedButton);

      $(chosenProject).toggleClass("displayed");
      $(clickedButtonClass).toggleClass("btn-success");
    });
  });
 });
$(document).ready(function() {
  $ (".project").each(function(i) {
    $(this).click(function() {
      clickedButton = $(this).attr("id");
      buttonId = ("#").concat(clickedButton)
      chosenProject = (".").concat(clickedButton)
      clickedButtonClass = (".pick-").concat(clickedButton);

      $(chosenProject).toggleClass("displayed");
      $(clickedButtonClass).toggleClass("btn-success");
    });
  });
 });
Make .pick-[projectname] class toggle correctly when the user clicks the button
Make .pick-[projectname] class toggle correctly when the user clicks the button
