Select the following Topics you are interested
Paito Anderson has sent email to me on how to use the jCaret in textarea more than a month ago, I am sorry that I write this page so late. The following is an example on the jCaret in textarea. The current version has applied the fix being suggested by Андрей Юткин.
<input class="hightlight" type="button" value="highlight fox"/><br/>
<textarea class="classNameOfTextArea" style="width:200px;height:100px;">
This is what people do if he saw a fox in the forest...
</textarea>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery.caret.js"></script>
<script type="text/javascript">
(function($){
$(document).ready(function(){
$(".hightlight").click(function(){
$(".classNameOfTextArea").caret("fox");
});
})
})(jQuery);
</script>