$(document).ready(function() {
$(".show_on_hover").click(function() {
$(".show_on_hover.hover").not(this).removeClass("hover");
$(this).toggleClass("hover");
});
});
Any clever JavaScript person know how to write the above as plain JavaScript? Thanks in advance :)
Here's the intended behavior: https://jsfiddle.net/kevadamson/fr8usm19/