遍历textareas [英] Iterate thru textareas

查看:42
本文介绍了遍历textareas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$(document).ready(function () {
   jQuery.CcEditorPlugin($("#txtHistoryMessage"), {
      style: "css/jquery.sceditor.default.min.css"
   });
});

$(document).ready(function () { 
   $('iframe').contents().find('body')[0].innerHTML = document.getElementById('txtHistoryMessage').value; 
   MatchHeights()
});




这是一个创建编辑器的jQuery,该编辑器将文本区域转换为编辑器.现在,我想使用此功能将页面中的所有文本区域转换为编辑器,因为文本区域的数量将有所不同.请帮帮我.




This is a jquery to create an editor which converts text area to editor. Now I want to convert all text areas in a page into editors using this function,given the no of text areas will differ. Please help me out.

推荐答案

(文档).ready(
(document).ready(function () { jQuery.CcEditorPlugin(


(" ), { 样式:" }); });
("#txtHistoryMessage"), { style: "css/jquery.sceditor.default.min.css" }); });


(文档).ready( function ( ){
(document).ready(function () {


这篇关于遍历textareas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆