Ejecutar evento solo 1 vez


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(function(){
  2.  
  3. $(‘#target’).one(‘click’,function(event) {
  4.  
  5. alert(‘Hello!’);
  6. });
  7. });

Report this snippet


Comments


You need to login to view comments.