实时获取input框改变的事件 $(function(){ $('#username').bind('input propertychange', function() { $('#result').html($(this).val().length + ' characters'); }); })
          $(function(){  
  
$('#username').bind('input propertychange', function() {  
    $('#result').html($(this).val().length + ' characters');  
});  
  
})
        
        