How to use jquery trigger anchor's default click event?

前端 未结 5 1824
醉话见心
醉话见心 2021-01-06 12:57

Suppose I have an anchor in my page like :turn to header then I also set a button in my page

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 13:18

    Try This, working for Me !!

    $("#anchor").get(0).click();
    

    This will call default click of the anchor.

提交回复
热议问题