Jquery how to call click on a link?
<p>I have a link with the id: </p>

<pre><code>nyhedsklik
</code></pre>

<p>I this function that gets triggered when clicking on the link:</p>

<pre><code>    $('a.poplight[href^=#]').click(function() {
        var popID = $(this).attr('rel'); //Get Popup Name
        var popURL = $(this).attr('href'); //Get Popup href to define size
I have just taken a part of the function for an example....
</code></pre>

<p>Now I want to make a click on the link with Jquery. Just like a user would do I have tried this which does not work:</p>

<pre><code>&lt;script&gt;
    $(document).ready(function() {
$('#nyhedsklik').trigger("click");
});
&lt;/script&gt;
</code></pre>
