$('textarea').bind('input propertychange', function() { $('div').html($(this).val().length); });
实时监听输入框值变化:oninput & onpropertychange
cssfirefly
http://cssfirefly.cnblogs.com
$('textarea').bind('input propertychange', function() { $('div').html($(this).val().length); });