title: Using find in jquery for extracting value of data-attr
body: <p>I have a button </p>
  
  <pre><code>&lt;button data-attr="x" data-attr-id="y" onclick="hello(this)"&gt;Hello&lt;/button&gt;
  
  function hello(value)
  {
  console.log(value);
  }
  </code></pre>
  
  <p>This is returning me </p>
  
  <pre><code>&lt;button data-attr="x" data-attr-id="y" onclick="hello(this)"&gt;Hello&lt;/button&gt;
  </code></pre>
  
  <p>How can i extract value of data-attr and data-attr-id from value variable.....i think its using find method of jquery...can somebody help me to get the correct syntax...thanks</p>