|
|
|
สร้างแถบสีเมื่อcheckbox ถูกเลือกยังไงค่ะ รบกวนผู้รู้ทีค่ะ |
|
|
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script type="text/javascript">
function funCheck(_id,_check){
if(_check == true){
document.getElementById("tr_row"+_id).style.background="#FFE4E1";
}else{
document.getElementById("tr_row"+_id).style.background="#FFFFFF";
}
}
</script>
</HEAD>
<BODY>
<TABLE width="400" border="1">
<TR id="tr_row1">
<TD>1</TD>
<TD>A</TD>
<TD>111</TD>
<TD><input type="checkbox" name="box_id[]" value="1" onclick="funCheck('1',this.checked);"></TD>
</TR>
<TR id="tr_row2">
<TD>2</TD>
<TD>B</TD>
<TD>222</TD>
<TD><input type="checkbox" name="box_id[]" value="2" onclick="funCheck('2',this.checked);"></TD>
</TR>
<TR id="tr_row3">
<TD>3</TD>
<TD>C</TD>
<TD>333</TD>
<TD><input type="checkbox" name="box_id[]" value="3" onclick="funCheck('3',this.checked);"></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|
|
|
|
|
Date :
2013-11-27 16:31:35 |
By :
เรก |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|