I am checking input character limit.
It's working fine on desktops but not working on mobile devices.
I also tried with on keydown but not happening.
I can use "e.which" but I am not getting "how I can do through it?"
Yes, it's possible through "onkeyup", but want to know how can I implement same functionality with "onkeyup"?
Please suggest me changes in my code.
My code snippet:
<script>
$('#bank_ifsc_code').keypress(function(e){
var charLength = $(this).val().length+1;
if(charLength>11){ return false; }
var k = e.keyCode,
$return = ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57));
if(!$return) { return false; }
})
</script>