Check a checkbox when textarea is typed in
I think I have what is a simple question:
I would like a checkbox to be checked if it is not already when a user types in the text area beside it.
Form layout is demo'd below.
- <table>
- <tr>
- <td><input type="checkbox" name="box[1]" value = "x"></td>
- <td><textarea name="area[1]"></textarea></td>
- </tr>
- <tr>
- <td><input type="checkbox" name="box[2]" value = "y"></td>
- <td><textarea name="area[2]"></textarea></td>
- </tr>
- </table>
Shouldn't be too hard right? but I can't seem to get it to work.
Thanks in advance.