FCKeditor取值问题
下面的方法是FCKeditor包里的一个例子改写成的。
问题是必须在页面取到form1.FCKeditor1.value的值。怎样才能取到?
<html>
<head>
<title> </title>
<script type="text/javascript" src="/mybbs/fckeditor/fckeditor.js"> </script>
<script language="JavaScript" type="text/javascript" charset="utf-8">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = '/mybbs/fckeditor/' ;
oFCKeditor.Height = 300 ;
oFCKeditor.Width = 500;
oFCKeditor.ToolbarSet = 'Basic';
oFCKeditor.ReplaceTextarea() ;
}
function check(){
var a=form1.FCKeditor1.value;
alert(a); //这里是空值。如何让这里取到值???
form1.submit();
}
</script>
</head>
<body>
<form action="test.do" method="post" name="form1">
<textarea name="FCKeditor1" rows="10" cols="80"></textarea>
<input type="button" onclick="check()">
</form>
</body>
------解决方案--------------------