【发布时间】:2011-07-04 05:53:38
【问题描述】:
我想在输入数据时验证我的文本。
我已经为 on keypree 事件编写了代码。
function validateQuestionTextArea(questionid)
{
var txtbx=$('questions-'+questionid).value;
if(txtbx.length > 99)
{
showValidationMessage('questionMaxLengthValidation');
return false
}
return true
}
但问题是我可以使用后退空间或删除一个达到 100 的空间。
我应该使用哪个事件?
【问题讨论】: