如何跳转到textarea中找到字符串的位置? [英] How to jump to location where the string is found in textarea?

查看:50
本文介绍了如何跳转到textarea中找到字符串的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在find函数中,如果我反复单击findNext,光标应该跳转到textarea中的那个位置并突出显示特定的文本。怎么做?

In find function,If I click findNext over and over,cursor should jump to that location in textarea and highlight the particular text.How to do it?

推荐答案

您可以尝试这样的方法 - http://stackoverflow.com/questions/ 499126 / jquery-set-cursor-position-in-text-area [ ^ ]
You can try something like this - http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area[^]


这篇关于如何跳转到textarea中找到字符串的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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