js 实时监听input中值变化
2021-01-28 05:14
阅读:677
!DOCT YPE html>
标签:san UNC nap switch javascrip bind with set phone
RunJS 实时监测input中值的变化
$(function(){ $(‘#username‘).bind(‘input propertychange‘, function() { $(‘#result‘).html($(this).val().length + ‘ characters‘); }); })
$(document).ready(function () {
$(‘#phonenum,#verifycode‘).bind(‘input propertychange‘,$(‘#verifycode‘).bind(‘input propertychange‘), function(){
btnSwitch()
btnApplySwith()
})
})
js 实时监听input中值变化
标签:san UNC nap switch javascrip bind with set phone
原文地址:https://www.cnblogs.com/deepalley/p/13215657.html
上一篇:js中prop和attr区别
下一篇:在前端用json数据绑定下拉框
评论
亲,登录后才可以留言!