ajax Html Editor MaxLength [modified]
-
hey guys i would like to restrict the user from inserting more then 70 letters in the ajax html editor contect can someone help me ?
modified on Thursday, November 5, 2009 7:06 AM
-
hey guys i would like to restrict the user from inserting more then 70 letters in the ajax html editor contect can someone help me ?
modified on Thursday, November 5, 2009 7:06 AM
which editor you are talking about ? If it is just a textbox you can check like this
txtbox keypress="javascript:return checkNosofLetters(this, event);"
function checkNosofLetters(evt)
{
var e = evt || window.event;
if(e.srcElement)
return e.srcElement.value.length < 100;
}:rose:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript