1.html文件

<td>
  <input   class="easyui-textbox" data-options="required:true" >
      <span >0</span>位 </span>
  </input>
</td>

 

 

 

2.js方法

$('#clientPhone').next().children().on("input propertychange",function(){  
        var clientValue = $('#clientPhone').next().children().val();
             $('#txtNum').text(clientValue.length);
    
    });

 

相关文章:

  • 2021-11-20
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-28
  • 2021-09-19
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案