VinceG / twitter-bootstrap-wizard

This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
MIT License
1.39k stars 676 forks source link

How to know which link was clicked? #200

Open leompeters opened 7 years ago

leompeters commented 7 years ago

Hi guys,

For example: if I have 2 links that trigger the Next event, one with id="next" and other id="save_next", how can I know which link was clicked triggering the Next event?

Thanks for your attention, Leo M.

SergeyDirin commented 6 years ago

onTabChange: function(tab, navigation, index, clickedIndex) { console.log("index = "); console.log(index); console.log("clickedIndex = "); console.log(clickedIndex); }