Pls help me javascript textarea validation not working if i remove class="ckeditor" then javascript validation working on textarea other wise if i use class="ckeditor" than it javascript validation not working
whether i can type in ckeditor or nothing type in textarea javascript validation showing alert("Please Enter Product Name"); message...
... pls help here my source code???
<?php require("ckeditor/ckeditor.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="somedirectory/ckeditor/ckeditor.js"></script>
<script language="javascript">
function check1()
{
var editor1=document.getElementById('editor1').value;
if(editor1=="")
{
alert("Please Enter Product Name");
//document.upload.submit.focus();
return false;
}
}
</script>
</head>
<body>
<form action="#" method="post" name="upload">
<textarea class="ckeditor" name="editor1" id="editor1"></textarea>
<input type="submit" name="submit" id="submit" onclick="return check1()">
</form>
</body>
</html>
Thu, 06/14/2012 - 16:55
#1