Add an extra click function to tabs
-
Hi – I’m developing a site locally and would like to add an extra function when the tabs are clicked. I would like the page to scroll to the top of the relevant tab panel. I’m happy with making the scroll animation happen but can’t figure out the correct javascript to trigger the onclick event. The usual $(‘#tab1’).on(‘click’, function(){}); is not working. Thanks in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Add an extra click function to tabs’ is closed to new replies.