openwysiwyg_v1.4.7 保存数据问题

QQ277401588 2011-05-27 02:43:57


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href= "styles/style.css" type="text/css"/>
<script type="text/javascript" src= "Scripts/wysiwyg.js" charset="GBK"></script>
<script type="text/javascript" src= "Scripts/wysiwyg-settings.js" charset="GBK"></script>
<script type="text/javascript">
// Use it to attach the editor to all textareas with full featured setup
//WYSIWYG.attach('all', full);

// Use it to attach the editor directly to a defined textarea
WYSIWYG.attach('textarea3', full); // small setup

// Use it to display an iframes instead of a textareas
//WYSIWYG.display('all', full);
</script>
<script type="text/javascript">
function upperCase() {
WYSIWYG.updateTextArea(n);
var y = document.getElementById("textarea3").value
//document.getElementById(x).value = y.toUpperCase()
document.getElementById("ccc").innerHTML = y;
}
</script>
</head>
<body>
<textarea id="textarea3" name="test3">
A small editor...can come in handy when you just need font size, bold, italic, etc.
</textarea>
<br />

<input id="Button1" type="button" value="button" onclick="upperCase()"/>
<span id="ccc">fghfgh</span>
</body>
</html>



点击Button1 得不到textarea3 数据??????????????
请教熟悉这块的朋友
...全文
149 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
失去乐山贼 2011-06-09
  • 打赏
  • 举报
回复
没用过,帮你顶。

87,990

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧