When you click on a particular .window, it is assigned a class .opened with the standard click-addClass. How can I remove the .opened class from a specific window by clicking on "close"?
$(document).ready(function() { $(".cursors").click(function() { $(this).addClass('currentz'); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="col-md-4 mainnew2 cursors "> <div class="relaliv"> <figure class="full-image-ratio ratio-1-1 zoomIn wow" data-wow-duration="0.3s" data-wow-delay="0.3s"> <img src="<?php the_sub_field('i'); ?>"> </figure> <div class="full-image-caption"> <h4> <?php the_sub_field('n'); ?> </h4> </div> </div> <div class="usloviyayay"> <div class="vertimidle"> <h4 class="h4t"> <?php the_sub_field('n'); ?> </h4> <p class="magi"> <?php the_sub_field('v'); ?> </p> <div class="button-alignment"> <a class="button-outline has-down-state losess"> <span class="button-outline-copy small-padding"> <span class=""> <span class="button-text-wrapper">закрыть</span> </span> </span> <span class="button-outline-bottom"></span> </a> </div> </div> </div> </div>
DOMfor the question. Or is it originally yours? - GONG