How to show/hide the item with a checkbox (jQuery)?

Good afternoon. Need checkbox to show/hide multiple div same. To just remove them writing this:
$(".kvartiribox").click(function () {
$("[class^=c-promo-block___2xszw]").hide();
});


<input type="checkbox" class="inputcheck kvartiribox" value checked> apartment <br><br>


<div class="c-promo-block___2xszw novoclass apartamenti">
 <div class="c-promo-block-image___3jLUE"><div class="c-promo-block-image-content___30WAj" style="background-image:url(/images/mini_novo/vtbarenapark.jpg);">
 <div class="c-promo-catalog-list___3ubrJ"></div></div></div><div class="c-promo-block-text___2UJtj">
 <div class="c-promo-block-text-content___3DvyN">
 <a href="#" target="_blank" class="links_novo">VTB arena Park</a>
 <span class="obj_price">1000 000₽ - 200 000₽ per m<sup>2</sup> </span>
 <div style="float:left;">
 <div style="width: 130px; height: 19px; float:left;">Airport
</div>
 </div> 
</div>
</div>
 </div>

Here's an example jsfiddle.net https://jsfiddle.net/2z1sfxdw/
Thus, when removing a tick, it only hides the contents of c-promo-block___2xszw, and how to do to when you show, it again showed ?

And the second question, for some reason in jsfiddle it works, but on my website does not want to) connect the libraries like so:
<script src="/js/jquery-3.3.1.min.js" type="text/javascript"></script>
 <script src="/js/filter.js" type="text/javascript"></script>

The path is correct, checked. Please tell me, just learning, so I ask for your help.
June 8th 19 at 20:54
1 answer
June 8th 19 at 20:56
Solution
thank you very much!
I don't know for what reasons the site is not working and the service it works) - Florence commented on June 8th 19 at 20:59
think the browser console will tell you about it - yoshiko_Corwin15 commented on June 8th 19 at 21:02
I don't know for what reasons the site is not working that's all

maybe you need to wrap your code in
$( document ).ready(function() {
 // Handler for .ready() called.
});

https://api.jquery.com/ready/ - Lydia_Pur commented on June 8th 19 at 21:05
here's your code, where jquery and filter?5a6840f03b344422745034.png

Even the console tells me that jquery is not present - yoshiko_Corwin15 commented on June 8th 19 at 21:08
thank you very much to You, when you edit a removed and forgot to insert) thanks for the help all the best! - Florence commented on June 8th 19 at 21:11
thank You very much! - Florence commented on June 8th 19 at 21:14

Find more questions by tags JavaScriptjQuery