html:

<textarea class="area" name="" ></textarea>
<p class="notice">已输入<span >0</span>个字</p>

js:

function checkTxt() { 
    var obj = $('#text1'),
        len = obj.val().length;
    $('#num').html(len);
}

 

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2021-11-14
  • 2021-09-17
猜你喜欢
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案