Given the following code,the hover function works correctly, but when clicked, loses the clicked_no_event_box
class. Not sure where I'm going wrong...
/* On document.ready.. */ $(function(){
$(".no_event_box").hover(
function(){$(this).addClass("clicked_no_event_box");},
function(){$(this).removeClass("clicked_no_event_box");}
);
$(".no_event_box").click(
function () {$(this).addClass("clicked_no_event_box");}
);
});