title: jquery reading elements of inner div with id
body: <p>Hi I have following div structure </p>
  
  <pre><code>&lt;div id="6" &gt;
     &lt;div&gt;&lt;h4&gt;Heading&lt;/h4&gt;&lt;/div&gt;
     &lt;div idd="2"&gt;
       &lt;h5&gt;3883&lt;/h5&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my code I am trying to read id and idd </p>
  
  <pre><code>   onDrop(element.attr('id'), element.attr('idd'));
  </code></pre>
  
  <p>It reads the value of id fine for idd it says undefined.
  Please let me know how to change the last part to read idd value too. Thanks </p>