I am currently using a fairly simple plugin within WordPress to upload a file. Users upload the file through the file input type. After that, the value is stored in the hidden wcpa_file_hidden input through jQuery.
<input type="file" id="file-1616666375492" class="photoupload wcpa_ajax_upload wcpa_file_custom " name="file-1616666375492" required="required"/>
<input type="hidden" class="wcpa_file_hidden" name="file-1616666375492_ajax" value="">
I am trying to get the value upon change. But unfortunately the change is not detected.
$('.wcpa_file_hidden').change(function() {
alert('TEST');
});
Any ideas?