<script type="text/javascript">
var limitNum = 100;
var message = 'You are not able to type more than ' + limitNum + ' symbols!';
function checkLength(validator, args)
{
var editor = <%=editortextbox1.ClientID%>; // get a reference to RadEditor
var editorText = editor.GetText(true); //get the HTML content of the control
args.IsValid = editorText.length > limitNum && editorText.length < 15;
}
</script>
このスクリプトは、editortextbox1が空であるかどうかをチェックしていますか?もしそうでなければ、何をしていますか?また、editortextbox1が空であるかどうかを確認したい場合は、このスクリプトをどのように変更する必要がありますか?ああ、私のページのすべてのテキストボックスに対してこのスクリプトを実行したいのであれば、どのような変更をする必要がありますか?私は2-3のテキストボックス(実際にはRadEditors)を持っているようです。私はすべてのエディタでnull値をチェックしたい。このスクリプトをどのように変更すればよいですか?このスクリプトは正確に何をしていますか? JavaScriptを理解しようとしています