ani_css ani_css - 11 months ago 46
Javascript Question

How to count dynamic submitting by button

I have html structure like this

enter image description here

<div class="count-box cocuk-count">
<span class="count-text">Çocuk:</span>
<span class="kisi-down"></span>
<span class="kisi-sayi-text">1</span>
<span class="kisi-up"></span>

and if I click first button (minus) it must counting forwards or if I click second button (plus) it must counting how can be possible by jquery ?

Answer Source

For addition


For substraction