jQ动态获取input输入值

1  <input type="text" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" class="form-control" id="priceSelf">
2 //注:onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" 为输入限制为整数
3 <script>
4 $('#priceSelf').bind('input propertychange', function(){
5
6 var priceSelf=$("#priceSelf").value;
7
8 });
9 </script>

 

posted @ 2020-09-01 11:08  coderjim  阅读(1576)  评论(0编辑  收藏  举报

更多知识请点击——

www.7017online.xyz