实时监听输入框值变化:oninput & onpropertychange

 

$('textarea').bind('input propertychange', function() {
    $('div').html($(this).val().length);
});

 

posted @ 2014-11-27 15:34  cssfirefly  阅读(332)  评论(0)    收藏  举报
foot