I have to modify this program to replace image with text. In this program, the value of input box should reflect in the place of balloon image. Could you help me ?
Program link:
$('#draw').click(function() {
var text = document.getElementById('txtBallon').value;
var $ballon = $('#ballon'),
$canvas = $('#canvas');
var ballon_x = $ballon.offset().left - $canvas.offset().left,
ballon_y = $ballon.offset().top - $canvas.offset().top;
context.drawImage(ballon, ballon_x, ballon_y);
$ballon.hide();
$(this).attr('disabled', 'disabled');
});