propertychange方法
生活随笔
收集整理的這篇文章主要介紹了
propertychange方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.html文件
<td><input id="clientPhone" type="text" name="clientPhone" style="width:150px;" class="easyui-textbox" data-options="required:true" >
<span id="hidd">已輸入<span id="txtNum">0</span>位 </span>
</input>
</td>
?
?
?
2.js方法
$('#clientPhone').next().children().on("input propertychange",function(){ var clientValue = $('#clientPhone').next().children().val();$('#txtNum').text(clientValue.length);});?
轉載于:https://www.cnblogs.com/mr-wuxiansheng/p/6501733.html
總結
以上是生活随笔為你收集整理的propertychange方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Python全栈开发:configpar
- 下一篇: COGS 36. 求和问题