F
F
Flasher2015-09-21 11:30:07
JavaScript
Flasher, 2015-09-21 11:30:07

Permanently adding text to input?

How to make the text added to the existing text on click: for example HelloHelloHello, that is, each click +1 Hello

$('span').click(function () {
        $('textarea').text('Hello');
    });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2015-09-21
@Flasher

$('span').click(function () {
        $('textarea').append('Hello');
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question