ทำสดๆๆ ร้อนๆๆ ประมาณนี้ เลย ครับ
มีปัญหาก็ Post ต่อเลยครับ
=============================================
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script language="javascript" type="text/javascript">
function doChoose(index){
switch(parseInt(index)){
case 1:
setTextboxReadOnly(false,'txtGroup11','txtGroup12','txtGroup13','txtGroup14','txtGroup15','txtGroup16','txtGroup17','txtGroup18')
setTextboxReadOnly(true,'txtGroup21','txtGroup22','txtGroup23','txtGroup24','txtGroup25','txtGroup26','txtGroup27','txtGroup28')
setTextboxReadOnly(true,'txtGroup31','txtGroup32','txtGroup33','txtGroup34','txtGroup35','txtGroup36','txtGroup37','txtGroup38')
break;
case 2:
setTextboxReadOnly(true,'txtGroup11','txtGroup12','txtGroup13','txtGroup14','txtGroup15','txtGroup16','txtGroup17','txtGroup18')
setTextboxReadOnly(false,'txtGroup21','txtGroup22','txtGroup23','txtGroup24','txtGroup25','txtGroup26','txtGroup27','txtGroup28')
setTextboxReadOnly(true,'txtGroup31','txtGroup32','txtGroup33','txtGroup34','txtGroup35','txtGroup36','txtGroup37','txtGroup38')
break;
case 3:
setTextboxReadOnly(true,'txtGroup11','txtGroup12','txtGroup13','txtGroup14','txtGroup15','txtGroup16','txtGroup17','txtGroup18')
setTextboxReadOnly(true,'txtGroup21','txtGroup22','txtGroup23','txtGroup24','txtGroup25','txtGroup26','txtGroup27','txtGroup28')
setTextboxReadOnly(false,'txtGroup31','txtGroup32','txtGroup33','txtGroup34','txtGroup35','txtGroup36','txtGroup37','txtGroup38')
break;
default:
setTextboxReadOnly(true,'txtGroup11','txtGroup12','txtGroup13','txtGroup14','txtGroup15','txtGroup16','txtGroup17','txtGroup18')
setTextboxReadOnly(true,'txtGroup21','txtGroup22','txtGroup23','txtGroup24','txtGroup25','txtGroup26','txtGroup27','txtGroup28')
setTextboxReadOnly(true,'txtGroup31','txtGroup32','txtGroup33','txtGroup34','txtGroup35','txtGroup36','txtGroup37','txtGroup38')
}
}
function setTextboxReadOnly(){
var arg = arguments;
if (arg.length>1)
{
for (i=1;i<arg.length;i++){
var obj = document.getElementsByName(arg)[0];
if (obj) obj.readOnly = arg[0];
}
}
}
</script>
</head>
ขอบคุณมากเลยครับ คุณJezusMitsui แต่ทำไมมันล็อก ซักชุดเลยละครับไม่ว่าจะเลือกกลุ่มไหนมันก็พิมพ์ได้ทุกกลุ่ม
โค้ดก็มีครบทุกอย่างทั้ง head body ผมก็ไม่แก้ไขอะไรนำไปรันเลย ทำไมมันไม่ได้ละครับ