I want the text box to be available only if a certain option is selected in the drop-down menu and I have an html form, as shown below:
<tr>
<td>a. Did any of your staff participate in training or orientation sessions related to any aspect of social performance management, during the reporting year? </td>
<td >
<p>
<select name="mfi_4_a_i">
<option>Yes</option>
<option>No</option>
<option>No, but planning in future</option>
</select>
</p>
<p>if not,and not planning please explain why not </p>
<input type="text" name="mfi_4_a_ii" id="sdd" />
</tr>
Now, when the user selects the No option, but, planning in the future, the text field must be included, otherwise the text field must be disabled.
How to do it?
Nyaro source
share