I'm trying to write code that selects a single line of a textarea input. The goal of the site is to provide an input for the user (the textarea) onto which he pastes a log file, and then I want to sort trough the data.
So I've got a textarea and a button below in HTML and don't know what to do from here on...I know the exact line I want to get, but the text length varies from log to log.
Is there a simple JavaScript and HTML solution for this? The select() method supposedly selects the whole content field.