i am trying to addClass to another element if the element i am checking is visible, "have display:block" but nothing is happening,
Here is my code
<script type="text/javascript">
    jQuery(document).ready(function() {
        if ($('.mejs-controls:visible')) {
            $('.mejs-captions-text').addClass('mejs-captions-text-move');
        }else{
            $('.mejs-captions-text').removeClass('mejs-captions-text-move');
        }
    });
</script>
Thanks!
 
     
    