how to invoke a link event using JQuery ?

how to invoke a link event using JQuery ?

how to invoke a link event ? I have tried two ways, both doesn't work. what is the correct way ?

Thanks.
  1. <a href="http://google.com" id="my_link" >go to google</a>

    in javascript
    $("#my_link").trigger('click');    // doesn't work
    $("#my_link").click();   // doesn't work