1
I have the following code that opens a modal with the jcrop to cut and then put the cut in a preview, but when I close the modal and select another photo it does not update in the modal.
- already switched to class the code;
- It just doesn’t change the photo of the modal when it uses the Jcrop;
- I’ve used ->
$("#blah11").attr("src", " "); E $("#blah11").trigger("reset");
and did not resolve!
follows the code:
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$("#blah11").attr("src", e.target.result);
};
}
reader.readAsDataURL(input.files[0]);
$("#modal-ft1").modal("show");
Thank You From Now!