我有一個有問題的表單,答案是複選框,最後一個答案中有另一個請指定選項,當我檢查該複選框時,文本框使我能寫入它。將文本框的值傳遞給複選框值
我的答案保存在一個數組中。但現在什麼問題是當我提交表單時,我想要另一個的值請指定選項是當選項被選中時填充的文本框的值。 這裏,我有以下形式:
<table>
<tr>
<td colspan="3" style="border-bottom:none">d. If you checked the boxes " very poor or poor clients", which reference point/benchmark do you use for estimating the poverty level of your clients? (Check all that apply): </td>
<td>
<input type="checkbox" name="sdd1[]" value="Persons in the bottom 50% of those living below the poverty line established by the national government"/>Persons in the bottom 50% of those living below the poverty line established by the national government <br />
<input type="checkbox" name="sdd1[]" value="Person living on less than US $1 a day international poverty line"/>Person living on less than US $1 a day international poverty line<br />
<input type="checkbox" name="sdd1[]" id="check" onclick="disableMe('mfi_1_d_i_a',this)" value="mfi_1_d_i_a" />Other(please specify):
<input type="text" name="mfi_1_d_i_a" class="init" id="mfi_1_d_i_a" maxlength="30" disabled="disabled"/> </td>
</tr>
</table>