码迷,mamicode.com
首页 > 其他好文 > 详细

propertychange方法

时间:2017-03-04 17:13:20      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:pre   blog   class   required   next   val   div   require   phone   

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);
    
    });

 

propertychange方法

标签:pre   blog   class   required   next   val   div   require   phone   

原文地址:http://www.cnblogs.com/mr-wuxiansheng/p/6501733.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!