I'm currently working on a function that needs to trigger a click on a link only if a specific classname is set to display: block;
Unfortunately, my coding skills are not advanced enough to accomplish this task.
Here is what I have so far: https://jsfiddle.net/thvinic/xesbvfkc/
if ($('hidden').is('display') == 'block') {
document.getElementById("urlx").click();
}
.hidden { display: block; }
<div id="HIDDENDIV" class="hidden">this is a div</div>
<a href="https://www.google.com" id="urlx">Google go example!</a>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="path-para-seu-script"></script>
Thank you for your assistance!😊👍