I'm using minicolors color picker for Yii and I want to attach a change event on the color picker input as always:
$('#color_picker').change(function(e) { console.log('It works!') });
But it doesn't work, then I tried:
$('#color_picker').miniColors({change: function(hex, rgb) { console.log('It works!') }});
This doesn't work either. Considering docs I should attach this event on creation, but why? What if I need to attach it after creation, can this be done?