After retrieving data from Laravel, I need JavaScript to capture the URL when text is clicked in the view. For example, if I click on clickme in the first line, I want to obtain /download=1. What is the most effective approach for achieving this?
<a href="/download=1"><i class="fa fa-download"></i>Clickme</a><br>
<a href="/download=2"><i class="fa fa-download"></i>Clickme</a><br>