JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

CSS

div {
    height:100px;
    border:4px solid black;
    padding:10px;
}

JavaScript

$('div').click(function(e){
    if(e.offsetY > $(this).outerHeight() - 4){
        alert('clicked on the bottom border!');
    }
});