我现在想用ajax的$post给服务器端传值,如何获取ueditor里的值呢,我的页面加载代码如下:
<textarea name="blog_content" id="blog_content"></textarea>
<script type="text/javascript" charset="utf-8">UE.getEditor('blog_content');</script>
页面能显示出来ueditor。
我现在用jq呀js通过id“blog_content”取到的值alert出来全是空,取不到这个值,我如何$post这个值啊。。。。请高手解答
------解决方案--------------------
那应该是你搞错对象,找错
UE.getEditor('editor').getContent() 用这看看
------解决方案--------------------
看看你的 .post 怎么写的。。。估计是写错了