1$('#check').change(function() {
2 $("#delete").prop("hidden", !this.checked);
3})
1<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
2<table>
3 <tr>
4 <td>
5 <input id="check" type="checkbox" name="del_attachment_id[]" value=" echo $attachment['link'];">
6 </td>
7
8 <td id="delete" hidden="true">
9 the file will be deleted from the newsletter
10 </td>
11 </tr>
12</table>