do .blur() function in newly appended object - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:append

Description

do .blur() function in newly appended object

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-2.0.2.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/* ww  w.j a  va  2s  . co  m*/
$(document).on('blur',".A",function(){
    console.log(1);
});
    });

      </script> 
 </head> 
 <body> 
  <div> 
   <input class="A" type="text"> 
   <input class="B" type="text"> 
  </div>  
 </body>
</html>

Related Tutorials