title: Javascript GET Data url from link when clicked
body: <p>I have retrieve data from Laravel, But in view i want javascript to get url when text clicked. Example when i click <strong>clickme</strong> in first line i will get <strong>/download=1</strong> .  What the best way?</p>
  
  <pre><code>&lt;a href="/download=1"&gt;&lt;i class="fa fa-download"&gt;&lt;/i&gt;Clickme&lt;/a&gt;&lt;br&gt;
  &lt;a href="/download=2"&gt;&lt;i class="fa fa-download"&gt;&lt;/i&gt;Clickme&lt;/a&gt;&lt;br&gt;
  </code></pre>