Click here to Skip to main content
15,997,284 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to go the line based on searched string in codemirror? doc.getSelection() function needs a line number as an argument. I have only string how to parse this string to the function and get the scroll view and selection of searched string in the textarea. Is there any other function for my requirement? Its like find and replace function but I just need to select the specific string in the textarea.
Any help will be greatly appreciated.
Posted

1 solution

Have a look here: Find and Replace for an Textarea[^]. Change the code to your needs.
 
Share this answer
 

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