KTImageInput events not working
Hello!
Using examples from
https://preview.keenthemes.com/html/metronic/docs/forms/image-input#events
Cannot get events working, Javascript error:
TypeError: Cannot read properties of null (reading 'on') on imageInput.on("kt.imageinput.removed", function() line.
Please help me.
Elieser
Replies (3)
Can you explain in detail how you solved it? Where exactly did you give the ID?
Hi,
Make sure you set the id at the root element
<div class="image-input image-input-empty" data-kt-image-input="true">
...
</div> And refer to the KTImageInput docs.
Regards.