Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Webiondev123's avatar

Display a one time popover message when date selected

I want to display a message to user when user clicks on date selection

0 likes
1 reply
Borisu's avatar

Well something along the lines of:

let displayed = false;
document.querySelector('select#special').addEventListener('click', function(event) {
    if (displayed === false) {
        // display your message...  
    }
});

I've written it in vanilla js, but it would be much easier to use some kind of framework. And for the message you could use this library which is pretty cool: https://sweetalert2.github.io/

Please or to participate in this conversation.