how to change hidden on html

Solutions on MaxInterview for how to change hidden on html by the best coders in the world

showing results for - "how to change hidden on html"
Hugo
21 Sep 2020
1$('#check').change(function() {
2  $("#delete").prop("hidden", !this.checked);
3})
Eleonora
28 Jul 2017
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="<?php 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>