1.限制input只能輸入數字
<input id="Number" name="Number" type="text" class="form-control required" onkeyup="value=this.value.replace(/\D+/g,'')" placeholder="請輸入數量" />
2.限制input只能輸入數字和小數點(用於金額輸入框等)
<input id="Price" name="Price" type="text" class="form-control" onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" placeholder="請輸入單價" />