限制input 只能输入数字和小数点

时间:2016/1/3 17:28:00来源:互联网 作者:flyso 点击: 2602 次

<input type="text" onafterpaste="this.value=this.value.replace(/[^\d\.]/g,'')" onkeyup="this.value=this.value.replace(/[^\d\.]/g,'')" style="ime-mode:disabled" size="10" id="Price" runat="server" />

Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3