Why doesn't jquery trigger update location.hash?

Given something like ... trigger ('click')

If the selector is a link, for example:

<a href="#/wow/2">click it </a>

Why doesn't this hash hit the url or fire the $ (window) .hashchange event?

thank

+5
source share
1 answer

trigger ("click") fires the onclick event handler, this is not the same as actually clicking on a person.

example: http://jsfiddle.net/dffsC/

+3
source

All Articles