title: jQuery find id, that's inside data-target attr
body: <p>I'm trying to get the id, that's inside a data target.</p>
  
  <p>For structure, i mean like this</p>
  
  <pre><code>PARENT (DATA TARGET)
    |
    V
  CHILD (ID)
  </code></pre>
  
  <p>Hope that makes a more clear vision</p>
  
  <p>I've tried the following code here.:</p>
  
  <pre><code>    jQuery(document).ready(function($) {
    $("a.print").click(function(event) {
      var id = $(this).attr("data-target").find("#edit_cookie"); // Look for the id inside data-target
      alert($(id));
    });
  });
  </code></pre>
  
  <p>But all it gives is this</p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).attr(...).find is not a function</p>
  </blockquote>
  
  <p>JSFIDDLE:
  <a href="http://jsfiddle.net/4pa3hqgt/2/" rel="nofollow noreferrer">http://jsfiddle.net/4pa3hqgt/2/</a></p>
  
  <p>What can i do here?
  Kind regards</p>