i have this
<div class="likes">13</div>
and I want to increment this number by +1 when I click a button
How can I do that with jQuery?
$ ('btn').click(function() {
$ ('.likes').text();
});
Thank you for your help!
i have this
<div class="likes">13</div>
and I want to increment this number by +1 when I click a button
How can I do that with jQuery?
$ ('btn').click(function() {
$ ('.likes').text();
});
Thank you for your help!