8.4.2: what's color picker jquery select event?

Permalink
I have a color picker in a block form. I want to preview the chosen color in the form. How can I do that?

The following doesn't work:
$('div.sp-picker-container').on('click', 'button.sp-choose', function() {
    console.log('ok');
});

Thank you.

linuxoid
 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.