There's an implementation of a callback to a click event for a link. I can't change or delete this code.
I want to call that link's click event callback when someone clicks a button (for example). So I decided to use .trigger('click'). It works fine.
But now, I don't want anything to happen when the user clicks the link. I was thinking of using .unbind() but doing that will make the .trigger('click') not work since the link has been unbinded.
So basically, I want to 'reuse' the callback of the link's click event without copy pasting the code. How do I do that?