Would like to ask if there's a way for transferring <canvas>
contents to another <div>
. So that after putting the signature, it will be previewed on the inside of the <div>
it was transferred to.
I've used this library https://github.com/szimek/signature_pad on our previous project and the signature looks real, like it was written by a pen.
This library can save the signature to a file, so what I did on our previous project is once I submit the form, the signature will be saved and it will be previewed by attaching the source file to an <img>
element.
What I would like to do is I have a <button>
that will show a modal that contains a signature pad and once the modal is closed, the signature will be transferred to another <div>
wherein its size will shrink depending on the div's size without having to save the signature on a file.
Thanks.