var counter = 1;
var delCnt = 0;
$(function() {
$('#linkAddLot').click(function() {
counter = eval(document.getElementById("hdnTotLot").value);
delCnt = eval(document.getElementById("hdnDelLot").value);
if((eval(counter-delCnt))>=5){
$('span.#lotMsg').css("visibility","visible");
$('span.#lotMsg').css("color","red");
$('span.#lotMsg').html('Already 5 (Five) Lot!!!');
} else {
$('span.#lotMsg').css("visibility","collapse");
var htmlEle = "<tr id='trLot_"+ (counter+1) +"'>"+
"<td class='t-align-center'><input type='checkbox' name='packagedetail_"+ (counter+1) +"' id='chkPackageDetail_"+ (counter+1) +"' value='"+ (counter+1) +"'/></td>"+
"<td class='t-align-center'><input name='lotno_"+ (counter+1) +"' type='text' class='formTxtBox_1' id='txtLotNo_"+ (counter+1) +"' style='width:80px;' onBlur='chkLotNoBlank(this);chkLotNo(this);'/><span id='msgLotNo_"+ (counter+1) +"' style='color: red; ' > </span></td>"+
"<td class='t-align-center'><textarea name='lotdesc_"+ (counter+1) +"' cols='20' rows='3' class='formTxtBox_1' id='txtLotDesc_"+ (counter+1) +"' style='width:250px;' onBlur='chkLotDetBlank(this);'></textarea><span id='msgLotDesc_"+ (counter+1) +"' style='color: red; '> </span></td>"+
"<td class='t-align-center'><input name='quantity_"+ (counter+1) +"' type='text' class='formTxtBox_1' id='txtQuantity_"+ (counter+1) +"' style='width:80px;' onBlur='chkQtyBlank(this);'/><span id='msgLotQty_"+ (counter+1) +"' style='color: red; '> </span></td>"+
"<td class='t-align-center'><input name='unit_"+ (counter+1) +"' type='text' class='formTxtBox_1' id='txtUnit_"+ (counter+1) +"' style='width:80px;' onBlur='chkUnitBlank(this);'/><span id='msgLotUnit_"+ (counter+1) +"' style='color: red; '> </span></td>"+
"<td class='t-align-center'><input name='estimatecost_"+ (counter+1) +"' type='text' class='formTxtBox_1' id='txtEstimateCost_"+ (counter+1) +"' style='width:80px;' onChange='setPkgEstCost(this);' onBlur='chkEstBlank(this);'/><span id='msgLotCost_"+ (counter+1) +"' style='color: red; '> </span></td>"+
"</tr>";
$("#tblLots").append(htmlEle);
document.getElementById("hdnTotLot").value = (counter+1);
}
});
});
i onun can çalışmaları txtLotNo üzerinde ancak IE8 onBlur='chkLotNoBlank(this);chkLotNo(this);'
üzerine fonksiyonunu onBlur yapmıştı dinamik Page bileşen eklemek için jquery bir kod yapmak zorunda
IE 7 ve firefox çalıştırırsanız, ben iyi çalışıyor ve eğer windows 7 önceden IE8 sürüm IE8.0.7600.16385 yüklü, ancak Windows 2003 uyumlu IE 8.0.6001.18702 denemek eğer çalışamaz eğer alos Bu yüzden herkes bana bunun için bir çözüm sağlayabilir mi?
:
o bu shortern için daha iyi olmaz chkLotNoBlank' ve chkLotNo' işlevleri Yukarıda belirtilenleri göremiyorum. – PleaseStand