have an add modal form.
trying to take the filename and copy it to the description field. Works on with the regular html add page, but via the modal form the field does not get populated.
loadjs.ready(“load”, function() {
$(“input[type=file]”).on(‘change’,function(){
alert(this.files[0].name);
$(“#x_notes”).val(this.files[0].name);
});
});
also added document.ready() with same outcome.