title: how can i get attribute in div with jquery
body: <p>this is code from firebug, i want to get data-name value  </p>
  
  <pre><code>&lt;div id="listdata"&gt;
       name1
        &lt;img src="images1" data-name="data01"&gt;
       name2
        &lt;img src="images2" data-name="data02"&gt;
       name3
        &lt;img src="images2" data-name="data03"&gt;
  </code></pre>
  
  <p></p>
  
  <p>how can i get attribute data-name by click with Jquery</p>