I need to hook the onchange event of an element on a custom shape.
When I put the following code and precompile it using LaravelMix, I get an error when displaying the chart.
Is there any way to solve this problem?
$(".flow-selector").on(‘change’, function () {
alert($(this).val());
});
Error is
Uncaught TypeError: n is not a function