I want to select text in a paragraph when I click or double-click a tag <p>. Do not select, just like using the mouse to select a selection area, to select the text you want to select!
I have several links to paragraph links and * .rar on the page, and I want to select all the text when I click on one of them. I think the text box may work this way, but I like that it is in the paragraph or link tag.
Is there a way to select all the text in a paragraph by clicking on another element?
source
share