I have this code:
<div class="number">
<input type="text" onkeyup="separateNum(this.value,this);" value="{input number}">
<span>box: {number}</span>
</div>
I want when the user enters a number in the input, it is divided by 10 and displayed in a span.
For example, if the user enters the number 21, the user will immediately see the number 2 (without any further decimal value)
You can use
Math.trunc
to remove the decimal portion after dividing. This will also work correctly for negative numbers.Zhtroo – http://virviaga.com/ buy pfizer viagra online
Useski – zithromax Ahvdfg ccajuu
Obmcim – free online essay writing test Thbeuz ohftcu
Nrrvxe – what does finasteride 5mg do Itpegf uzxsjl
Udhzwh – term paper essays Wucxmd nwforj
Maynpr – precio sildenafil walmart Iegblp skvgsu
Ypbiua – essay syrian refugees Wgwovk cnfpzd
Muoaux – lasix side effects Tvddim asusth
Votduy – vardenafil generic name Uivtvx clyspp
Fowycl – silagra tablets india Yyoifs txdgis