So far I have this:
<span class="description">Description 1</span>
<button class="select">Select!</button>
<span class="description">Description 2</span>
<button class="select">Select!</button>
<span class="description">Description 3</span>
<button class="select">Select!</button>
<span class="description">Description 4</span>
<button class="select">Select!</button>
I want button to select text inside "description" class element, but only for previous one. Is that possible? Aka if user clicks on first select button, Description 1 will be selected.
Note: In selection I mean that the text should be highlighted. Thanks in advance