Add dynamic text to an image

I create a website for users where they can create logos. To do this, I need a tool to add dynamic text from text fields that the user will fill out, and then the text will appear on the selected image. Is there a way, say, for Javascript through which I can execute the script described above? Thank you for any suggestions on how I could do this.

My HTML so far:

<html> <body> <input type="text" id="submit"/> <img src=<?php echo $image; ?> id="toChange" alt="pic" width="60" height="60" /> </body> 

and my jQuery:

 $('#submit').change(function() { $('#toChange').text( $('#submit').val()); }); 

but I have not succeeded yet.

+7
source share
1 answer

You can try the following:

Hope this is helpful.

+9
source

All Articles