So, I have this if statement and I want to add a class to an element I've added it in my if statement but it doesn't add the class.
$(".project").click(function(){
if ($(".project-expand",this).is(':visible')) {
$(".project-expand",this).hide();
} else if ($(".project-expand",this).is(':hidden')) {
$(".project-expand",this).show();
$(".project",this).addClass('item-dropped');
}
});