On tap hold increase the value of text box
I just want to increase value plus 1 in text box, when tap hold starts and till user leaves it.
- <input type="text" value = 1 id="number">
- <span id = "upSpan" > Up </span>
- $('#upSpan').on("taphold", function () {
- var number = $('#number').val();
- $('#number').val(parseInt(number) + 1)
- });
this should be repeated till he leaves.
Like input type number.