Lets say I have:
<div></div>
with:
div {
    width: 500px;
    height: 500px;
    position: relative;
}
div:after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    right: 0;
}
Can I do something like $('div:after').click(function(){...}); ? And have it not fire if I am clicking on div but not div:after.
 
     
    