58
rated 0 times
[
60]
[
2]
/ answers: 1 / hits: 24328
/ 12 Years ago, sat, november 24, 2012, 12:00:00
I have a function which detect max length. but the problem is that when the max length reached Ctrl+A combination does't work. How can I detect Ctrl+A combination through 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;
}
}
More From » javascript