我一直在弄清楚如何在使用 javascript 检查相应复选框时启用文本框数组...
这是我的代码:
$line_util3 = "Select id_code,description from WEBLOAN_SERVER.webloan.dbo.mis_group where pid_code='$list_count' and group_no = '0' and child_node = '1' ";
$stmt_line_util3=sqlsrv_query($conn, $line_util3);
if(!$stmt_line_util3) {
die( print_r( sqlsrv_errors(), true));
}
sqlsrv_execute($stmt_line_util3);
while ($imps_row1 = sqlsrv_fetch_array($stmt_line_util3,SQLSRV_FETCH_ASSOC))
{
echo "<tr>";
echo "<td><input type='checkbox' name='op[]'></td>";
echo "<td>" . $imps_row1['id_code'] . " - " . $imps_row1['description'] . "</td>";
echo "<td><input type='text' disabled='disabled' name='txt[]'></td>";
echo "</tr>";
}
非常感谢你的帮助