title: How to use jquery trigger anchor's default click event?
body: <p>Suppose I have an anchor in my page like :<code>&lt;a href="#header" id="anchor"&gt;turn to header&lt;/a&gt;</code>  then I also set a button in my page <code>&lt;input type="button" value="triger anchor"&gt;</code>  .What I want to do is that ,when I click the button ,it will triger the anchor's default click event ,as the page  turn to "header".So I write  <code>$("input").click(function(){$("#anchor").trigger("click");});</code>  But it seems doesn't work .So how can I achieve that?Thank you </p>