Create dispatchEvent

dispatchEvent is the better than click() for simulating event's happens.Sometimes,click() is invalid----http://stackoverflow.com/questions/11127908/difference-between-click-and-actually-clicking-a-button-javascript-jquery