user3642210 user3642210 - 5 months ago 23
Javascript Question

Type name in form element, creates signature

I am looking for a way so that when a user types their name within a form field input box, a digital signature is created, or some type of box that shows the name written.

Is something like this possible?

The form itself does not need to submit the signature, it is purely for show on the form page itself.

Thanks

Answer

You can listen for changes on your input and on each trigger, copy it's value to the place you want. That's what you want to achieve, right?

// Listen for input change
$('#yourInputId').on('input',function(e){
   //copy it's content somewhere else
   $('#placeToPasteValue').text($('#yourInputId').val());
});