如何在页面中查找文本区域 [英] How to find textareas in a page

查看:73
本文介绍了如何在页面中查找文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,另一个问题又回来了

我有一个jquery来查找页面中的第一个textarea并将其替换为html编辑器..如果页面中只有一个textarea,它可以正常工作.现在我想知道如何将同一个编辑器放在3种不同的样式中放置在同一页面中.我现在使用的jQuery是这个

Hi guys am back with another question

i have a jquery to find the first textarea in a page and replace it with a html editor..it works fine if there is only one textarea in the page.. Now i want to know how can i put the same editor in 3 different places in the same page. The jquery i am now using is this

<script type="text/javascript">
       $(document).ready(function () {
           jQuery.CcEditorPlugin($("textarea:first"), {
               style: "css/jquery.sceditor.default.min.css"
           });
       });
       $(document).ready(function () { $('iframe').contents().find('body')[0].innerHTML = document.getElementById('html_field').value; MatchHeights() });      

</script>



请帮帮我..它非常紧急



Please help me out .. Its very urgent

推荐答案

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


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


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


这篇关于如何在页面中查找文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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