<script language="javascript" type="text/javascript">
function test() {
var a = $find("<%=Editor1.ClientID%>");
var value = a.get_content();
//alert(value);
value = value.replace(/<br \/>/gi, '');
value = value.replace(/ /gi, '');
value = value.replace(/^\s+|\s+$/g, '')
//alert(value);
//alert((value).replace(/<br \/>/gi, ''));
if (value == "") {
alert("Editor's content is empty");
return false;
}
}
</script>
function test() {
var a = $find("<%=Editor1.ClientID%>");
var value = a.get_content();
//alert(value);
value = value.replace(/<br \/>/gi, '');
value = value.replace(/ /gi, '');
value = value.replace(/^\s+|\s+$/g, '')
//alert(value);
//alert((value).replace(/<br \/>/gi, ''));
if (value == "") {
alert("Editor's content is empty");
return false;
}
}
</script>
No comments:
Post a Comment