Can anyone tell me how to select a specific line within a textArea please?
ie.
If a textArea contained 3 lines as below:
cat
dog
fish
I want to be able to select the whole line dog, but based on the cursor being positioned by a mouse click somewhere on that line.
I know I can select all the text by dragging across it but that's too messy.
Any guidance will be more than welcome.
Thank you
ie.
If a textArea contained 3 lines as below:
cat
dog
fish
I want to be able to select the whole line dog, but based on the cursor being positioned by a mouse click somewhere on that line.
I know I can select all the text by dragging across it but that's too messy.
Any guidance will be more than welcome.
Thank you