I was designing a web application and got stuck in an input form.
I have a list of services which i am showing dynamically with php like this,
while($row=$result->fetch_assoc())
{
extract($row);
echo "<td>$service</td>";
echo "<td><input type='checkbox' name='ac[]'>'</td>";
echo "<td><input type='text' name='as[]' disabled>'</td>";
echo "<td><input type='text' name='ad[]' disabled>'</td>";
}
Now what this is doing is printing at least 10 or twenty service names one after the other and also printing a checkbox and two textboxes beside each of them for taking inputs.
Now what I want to do is to make it such that the text boxes are disabled unless I check the check box.
Is this possible? I need some help.