<input type="submit" id="event_submit_do_update_price" name="event_submit_do_update_price" onclick="javascript:return updateMaxPrice('<%rs("namese")%>');" value="更新价格" />要是修改,怎么写呢。谢谢。
调试欢乐多
你觉得是不是得拿出来看看!~
var re = /^\d{1,2}(\.\d{1,2})?$/;
var validMinPrice = document.getElementById("validMinPrice").value;
var validMaxPrice = document.getElementById("validMaxPrice").value;
var dailyMaxCost = document.getElementById("dailyMaxCost").value;
var balance = document.getElementById("balance").value;
var isPayedUser = document.getElementById("isPayedUser").value;
var newUpdateMaxPrice = document.getElementById("updatePrice").value;
} else {
if(isValidDecimal(newUpdateMaxPrice)) {
/*
if (!re.test(newUpdateMaxPrice) || parseFloat(newUpdateMaxPrice) > validMaxPrice || parseFloat(newUpdateMaxPrice) < validMinPrice) {
alert("请输入大于等于" + validMinPrice + "元,且小于" + validMaxPrice + "元金额的数字,小数点后两位");
document.getElementById("reset").click();
return false;
}
document.getElementById("updatePrice").value = word + "=" + document.getElementById("updatePrice").value;
document.getElementById("wordalias_updatePrice").value = wordalias;
return true;
} else {
window.alert("请设置合法价钱后再进行更新");
document.getElementById("reset").click();
return false;
}
}
}