You have got 5 down vote already. But I will give you a pointer
<table>
<tr>
<td><iNPUT TYPE='checkbox' ID='Checkbox_1' onclick='document.getElementById("Text_1").value=1'></td>
<td><iNPUT TYPE='text' id='Text_1' value=''></td>
<tr>
</tr></tr></table>
now, how you would achieve it in pro-grammatically is up to you