jQuery: how to trigger anchor link’s click event

Try the following:

$("#myanchor")[0].click()

As simple as that.

Leave a Comment