1
I’m working on a touchscreen keyboard, put the numbers from 0 to 9, clear key and enter. As the numbers are clicked they appear in a display.
To capture the clicked numbers I am using the following function:
function addNumber(e){
var v = $( "#PINbox" ).val();
$( "#PINbox" ).val( v + e.value );
}
How do I limit the amount of captured numbers by 5? Ex.: 12345 and no more numbers accepted.
Thanks in advance for your attention.
Are you using any framework? html + javascript only?
– Darlei Fernando Zillmer