<input type=text name=budget > <input type=number name=used min=1 max='10000' onfocus="this.setAttrbute('max', document.formname.budget.value)">
//*** Column Budget ***// newCell = newRow.insertCell(5); newCell.id = newCell.uniqueID; newCell.setAttribute("className", "css-name"); newCell.innerHTML = "<center><INPUT TYPE=\"TEXT\" SIZE=\"30\" NAME=\"txtBudget_" + intLine + "\" ID=\"txtBudget_" + intLine + "\" VALUE=\"\"></center>"; //*** Column Used ***// newCell = newRow.insertCell(6); newCell.id = newCell.uniqueID; newCell.setAttribute("className", "css-name"); newCell.innerHTML = "<center><INPUT TYPE=\"NUMBER\" SIZE=\"30\" min=\"1\" onfocus=\"this.setAttrbute('max', document.frmMain.txtBudget_" + intLine + "\".value)\" NAME=\"txtUsed_" + intLine + "\" ID=\"txtUsed_" + intLine + "\" VALUE=\"\"></center>";
function set_max( obj, intLine ){ var mx = parseInt( '0' + document.getElementById('txtBudget_'+intLine).value); if( mx==0) mx = 10000; // กำหนดค่า default obj.setAttribute('max', mx); } newCell.innerHTML = '<center><input type=number size=30 min=1 data-lineNo='+intLine+ ' onfocus="set_max(this)" name=txtUsed_' + intLine + ' id=txtUsed_'+intLine+' ></center>';
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง