Catch File Selector click
Permalink
I'm trying to catch the File Selector click, but I don't get it.
This is my File selector on the page:
Here are my trials:
Any ideas?
This is my File selector on the page:
$u = new \Concrete\Core\Application\Service\FileManager(); print $u->image('my_image', 'my_image', '', $myFileInstance);
Here are my trials:
jQuery(document).on('click change', '[data-file-selector=my_image]', function () { "use strict"; console.log(jQuery('[name="my_image"]').val()); }); // or jQuery(document).on('change', '[name=my_image]', function () { "use strict"; console.log(jQuery('[name="my_image"]').val()); }); // or jQuery(document).on('click', '.ccm-file-selector', function () { "use strict"; console.log(jQuery('[name="mail_logo"]').val()); });
Any ideas?