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>