Good day! Jquery if the checkbox is checked, then you need to hide the listbox with a background if the user ticked the checkbox, then the form is hidden, if removed, it appears how to make a prompt, without pressing any buttons, just checkout
I did it like this, but this is for handling the loading of the page and something does not work anyway
<script> $(function(){ $(document).ready(function() { if ($("#h_check").is(":checked")) { document.getElementById('m_elements').style.display = 'none'; } </script>