How to trigger('click') on jquery tab's currently active tab

后端 未结 3 1300
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 16:36

I have a tabed screen and want to trigger a click on the selected tab once the form is submitted and the return is valid. Here a part of the html:

3条回答
  •  误落风尘
    2021-01-17 17:13

    rather than trying to trigger the click event itself (which I believe is not possible to invoke a user event programatically in this context), I suggest that you trigger the function that has to be called on click event, you might want to look into triggerHandler

提交回复
热议问题