I am working on asp.net based application. I am using multi-line textbox and I am using java script in asp.net.I want to find a line number of a particular character or text in a multi-line textbox. How can I get line number from a multi-line textbox using Javascript?
Share
Edit: You just changed the title from ASP.NET to javascript, so this answer is incorrect but might be helpful anyhow.
Here’s a Javascript function that does what you want(with the option of case-insitive search):