.el:active{
background:red;
}
Is there a way to associate the above CSS active
state with a JavaScript event, like this:
$('.el').on('active', function(){
img.show();
});
I want the image to remain visible when el
is pressed and hide when it's released.