I need to make js so that when you hover the mouse over the photo, the color of the border changes (and when you leave the photo, the color that was returned). I did it successfully:
$('.logo_js').hover(function () { $(this).css({ "border-color": "#FF80FF" }); }, function () { $(this).css({ "border-color": "#DFDFDF" }); });
But I need to make it so that when the user clicks on the photo, the color turns green. This does not work for me, since when the focus is lost, the color returns to #DFDFDF.
How to make the colors change when you hover, and when you press the color of the border turned green?