Konstantin47,
<style type="text/css">
[name='elems']{
display: none;
}
[name='elems'].open{
display: initial;
}
</style> <script>
document.addEventListener( "DOMContentLoaded" , function() {
const on = (parent, event, selector, handler) => parent.addEventListener(event, ({target}) => {
if(target = target.closest(selector)) handler(target)
})
const fn = el => {
document.elems.classList.add("open")
//alert(`${el.textContent} форма открывайся, раз, два!!!`);
}
on(document, "click", "#calendar2 tbody td", fn);
});
</script>