title: Play sound only once Jquery
body: <p>I am trying to achieve something like this, upon hovering over an image, a sound is played, and I want the sound to be only played once, means after the initial hovering, the subsequent hovers will not trigger the sound to play anymore, currently i am trying this code, but it does not work </p>
  
  <pre><code>$(document).ready(function(){
  
  $("#bg")[0].play();
  
  var pring = 0;
  
  $(function(){
  $('#apDiv5').hover(
   function(){$("#phone")[0].play();},
   function(){$("#phone")[0].stop();
   pring++;
   if (pring &gt; 1) {function(){$("#phone")[0].stop();}
   }});
  
  
  });
  
  });
  </code></pre>