title: How do I get forwarded to a link that is in a data attribute in html when clicked using jQuery?
body: <p>I am trying to forward to a link when the div is clicked using a data attribute and jQuery, but am stuck a bit. Here is the code I have:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;div class="clickable-icon" data-link="www.google.com"&gt;click to be forwarded&lt;/div&gt;
  </code></pre>
  
  <p>jquery: </p>
  
  <pre><code>$('.clickable-icon').attr('data-link');  
  </code></pre>
  
  <p>used google as an example for the link to go to. But how would I use jquery to help with this?</p>