title: how to get value from rating system and save to database
body: <p>hi i got <code>jquery</code> code for rating bar from <a href="http://plnkr.co/edit/kFKejRU0G2wmkD7GlNdH?p=preview" rel="nofollow">http://plnkr.co/edit/kFKejRU0G2wmkD7GlNdH?p=preview</a>, i want to get the value from the jquery when <code>hovering leave</code> event occurs, and process in server to save to mysql database. </p>
  
  <p>Here is my jquery code</p>
  
  <pre><code>angular.module('plunker', ['ui.bootstrap']);     
  var RatingDemoCtrl = function ($scope) {    
      $scope.myRate = 0;    
       $scope.submit = function() {             
           console.log($scope.percent) ; //null         }
  
       $scope.rate = 1;
       $scope.max = 5;
       $scope.isReadonly = false;
       $scope.percent = 20;
  
        $scope.hoveringOver = function(value,object) {
          console.log('hoveringOver', value);
          $scope.overStar = value;
          $scope.percent = (100 * $scope.overStar) / $scope.max;
        };
  
         $scope.hoveringLeave = function(rate) {             
             console.log('hoveringLeave',  $scope.rate);            
         $scope.percent = (100 * $scope.rate) / $scope.max;
        };
      };
  </code></pre>
  
  <p>want to get  percent value from <code>hoveringLeave</code> and to save it from here:</p>
  
  <pre><code>function callIt()   
  {
      var rate=document.getElementById("rate");       
      alert();        
  }
  </code></pre>
  
  <p>is there any way to get this? PLease help here.</p>