Check if we have a real user click or a code trigger click – jQuery

Sometimes you want an action to happen only when the user clicks. For instance, I had a rollover effect going trigger the same action as a click on filter button. However, if the button is clicked I wanted to avoid rollover to change the selected filter to keep the selected filter active. So if the user clicks, I run the trigger, if not I don’t run it.

Continue reading “Check if we have a real user click or a code trigger click – jQuery”