Open modal with javascript instead of link using a wordpress plugin


Staff member
I am using the wordpress plugin <a href="" rel="nofollow">Easy Modal</a>

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

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