I have a function that determines the maximum length. but the problem is that when the maximum length reached the combination Ctrl + A, it does not work. How can I detect a combination of Ctrl + A via javascript.
This is my maxlength code.
if (event.keyCode==8 || event.keyCode==9 || event.keyCode==37 || event.keyCode==39 ){ return true; } else { if((t.length)>=50) { return false; } }
source share