I'm trying to figure out how to call a function from a a link rather than from an image in a div with the following script:

<script type="text/javascript">
    $(document).ready(function () {
The function is triggered on clicking an image in a div "#container" - I'd like it to be activated from clicking on a link.

Forgive me for not being more technical. Could anyone advise how.

Any help greatly appreciated.