title: to get selected value from stars using jquery rateit plugin
body: <p>I am using rateit plugin of jQuery for star rating.
  here is the plugin <a href="http://rateit.codeplex.com/" rel="nofollow">http://rateit.codeplex.com/</a></p>
  
  <p>My code:</p>
  
  <pre><code>&lt;link href="rateit.css" rel="stylesheet" type="text/css"&gt;
  &lt;script src="../src/jquery.rateit.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;div class="rateit" id="rateitval" data-rateit-step="1" data-rateit-resetable='false'&gt;&lt;/div&gt;
  
  &lt;input type="button" onclick="dis();"&gt;
  
  &lt;script type="text/javascript"&gt;
      var tooltipvalues = ['bad', 'poor', 'ok', 'good', 'super'];
      var v = 1;
      $("#rateitval").bind('over', function(event, value) {
          v = value;
          $(this).attr('title', tooltipvalues[value - 1]);
      });
  
      function dis() {
          alert(v);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I need to get the rate value given in the star as an alert when i click the button. But for my code, it shows me null for all values. Suggest me some solutions.</p>