Click here to Skip to main content
15,919,778 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

JavaScript
<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
Posted
Comments
Arjun Menon U.K 8-Jun-12 1:39am    
Thanks guys .. Glad that i found the solution by myself..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900