Fire a click event in raw javascript
<p>In jQuery I can do something like:</p>

<pre><code>$('#example').click();
</code></pre>

<p>What is the equivalent in raw Javascript? I have tried the following:</p>

<pre><code>document.getElementById('example').click();
</code></pre>

<p>But that doesn't seem to work. Thanks!</p>
