Open modal with javascript instead of link using a wordpress plugin

admin

Administrator
Staff member
I am using the wordpress plugin <a href="https://wordpress.org/plugins/easy-modal/" rel="nofollow">Easy Modal</a>

I can open a modal like that
Code:
&lt;a href="#" class="eModal-11"&gt;Open Modal&lt;/a&gt;
. Now I want to open the modal with javascript like that

Code:
if (var == true) { openmodal-11(); }

Is there a way I can do this, without looking at the plugin code? So I can "open" the class with javascript like fake clicking on the link.. I am kind of a newbe in coding...

Thank you