Advertisement
Guest User

jQuery Events Issue

a guest
May 20th, 2014
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <head>
  3.         <script type="text/javascript" src="js/jquery.min.js"></script>
  4.        
  5.         <script type="text/javascript">
  6.             $(function () {
  7.                 var $1 = $('<input />'),
  8.                     $2 = $('<input />'),
  9.                     $div = $('#jqueryIssue');
  10.                    
  11.                 $1.on('keyup', function (e) {
  12.                     alert('keyup');
  13.                 }).on('blur', function (e) {
  14.                     alert('blur');
  15.                 });
  16.                
  17.                 $div.append($1, $2);
  18.             });
  19.         </script>
  20.     </head>
  21.     <body>
  22.         <div id="jqueryIssue"></div>
  23.     </body>
  24. </html>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement