function save() {
var gridCount = $('.x-grid3-row').length;
var gridedis = $('#PanelSail_GPInsertSail_txtGuideDiscount').val();
for (var i = 0; i < gridCount; i++) {
var discount = parseFloat($('.x-grid3-row').eq(i).find(".x-grid3-col").eq(7).find("input").val());
if (gridedis < discount) {
return false;
}
else {
return true;
}
}
}
作者: 以葥以後 时间: 2012-7-26 03:34
方法2:
<ext:Button ID="btnAdd" runat="server" Text="保存订单" Icon="SystemSaveNew" OnClick="btnAdd_Click" OnClientClick="f1($(this))" > </ext:Button>
function f1(e) {
var gridCount = $('.x-grid3-row').length;
var gridedis = $('#PanelSail_GPInsertSail_txtGuideDiscount').val();
for (var i = 0; i < gridCount; i++) {
var discount = parseFloat($('.x-grid3-row').eq(i).find(".x-grid3-col").eq(7).find("input").val());
if (gridedis < discount) {
e.preventDefault();
}
else {
return true;
}
}
}作者: guns_ken 时间: 2013-1-6 09:08
MARKOKOKOKOK作者: 不轻言放弃 时间: 2014-10-22 12:05
mark。。。