Good afternoon, you need to implement drop-down blocks in the layout (I immediately speak in js / jquery I understand at the beginner level), there is a block with a photo of a short info and a link (down arrow) when you click on the arrow the block will increase and reveal even more information. I thought to implement all this by adding a class with increased height by clicking on the arrow. In this way:
$(".select").click(function(e) { e.preventDefault(); $(".select-element").toggleClass("add-height"); }); But there was a bug that the class with height is applied to all elements and it turns out that they all go. We need another embodiment of the jquery function. Prompt possible solutions.