title: Jquery get data attribute for input
body: <p>I use this plugin: <a href="https://github.com/irfan/jquery-star-rating" rel="nofollow noreferrer">https://github.com/irfan/jquery-star-rating</a></p>
  
  <p>I have html:</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;input type="radio" data-id="attr-1" name="example" class="rating" value="1" /&gt;
  &lt;input type="radio" data-id="attr-2" name="example" class="rating" value="2" /&gt;
  &lt;input type="radio" data-id="attr-3" name="example" class="rating" value="3" /&gt;
  &lt;input type="radio" data-id="attr-4" name="example" class="rating" value="4" /&gt;
  &lt;input type="radio" data-id="attr-5" name="example" class="rating" value="5" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I use ajax:</p>
  
  <pre><code>$('.container').rating(function(vote, event){
       $.get(document.URL, {vote: vote, attr: $(this).data('id')});
  });
  </code></pre>
  
  <blockquote>
  <pre><code>$(this).data('id')
  </code></pre>
  </blockquote>
  
  <p>not working. How I can fix? In documentation of the plugin I don't see How I can get data attribute.</p>