Ive been figuring out how to enable an array of textbox when their corresponding checkbox is being checked using javascript...
Here is my code:
$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>";
}
Thank You very much for the Help