I use a jQuery library that dynamically creates a link with a click event like:

```
$parent.append('<div class="add-row"><a href="javascript:void(0)">Add another contact</a></div>');
addButton = $parent.find("div:last a");

addButton.click(function(e){
    e.preventDefault();
    load_contact_creation_form();
});

```

I want to add some code to my page so when the URL contains a specific flag, the `addButton.click` event is fired automatically.

Inspecting with the Firefox/Chrome debug tool, I can easily find the link with:

```
$('.add-row a')

```

However, attempting to using `$('.add-row a').click()` to click it does not trigger the custom 'click' event.

Why is there a disparity between `.click()` and a real mouse-click? How do I trigger the custom `click` event handler in this case? The code that generates the link is an external library, so I can't easily modify it.