<!-- <input type="number" name="mytext[]" id="money_1" placeholder="费用金额 1"
oninput = "value=value.replace(/^(([1-9]\d*)|\d)(\.\d{1,2})?$/g,'')"/> -->
<input type="text" name="mytext[]" id="money_1" placeholder="费用金额 1"
onchange= "if( ! /^(([1-9]\d*)|\d)(\.\d{1,2})?$/.test(this.value)){
$.alertView('金额格式有误,小数点后只能保留两位');this.value='';
}" />
<!-- <input type = "text" name= "price" id = 'price' onkeyup= "if( ! /^d*(?:.d{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value='';}" /> -->