What is the recommended way to implement accessibility to copy text from within a <p>
element?
For example,
<p class='text'>Some text to copy</p>
The <p>
element is a inserted into DOM via AJAX call. What ARIA tags needs to be applied so that when it is being generated and inserted it becomes accessible to the user to copy easily.
All ideas appreciated.