Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if set textbox1 MaxLength =20, and i can still input hindi character More than 20 characters.
Posted
Comments
jeyamothi 6-Aug-12 6:16am    
are you give this attribute in design page or code behind
Pratika05 6-Aug-12 6:40am    
at design page
AshishChaudha 6-Aug-12 6:28am    
could you show us the code?? are you using google API for Hindi. MaxLength working fine for me..
Pratika05 6-Aug-12 6:41am    
using javascript

1 solution

Try doing this

C#
$('input#title').attr('maxLength','25').keypress(limitMe);

function limitMe(e) {
    if (e.keyCode == 8) { return true; }
    return this.value.length < $(this).attr("maxLength");
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900