I can't make it so that when I click on a block, the color of its edges changes to a different color using .animate() , nothing comes out! (2 line from this script), please help!
if ($(".title_text_variant").text() == "Click to open...") { $(".main_block_variant").animate({'borderColor': '#5dbf76'}, 500); $(".title_text_variant").text("Click to close..."); return $(".block_variant").slideDown(500); }
returnis only for functions in theifblock that does not work, and there will be an error - Alexander Zaytsevtitle_text_variant,main_block_variant,block_variant. What how? - Alexander Zaytsev