- `change` instead of `changed`, `changed` doesn't work at all
- `[data-tabs]` instead of `#tab` better indicates that event handler should be added to `ul.tabs` element
Every plugin fires DOM events when certain functions finish. For example, you can listen for when tabs change, or an off-canvas menu opens, and create a callback to respond to it.
```js
-$('#tab').on('changed.zf.tabs', function() {
+$('[data-tabs]').on('change.zf.tabs', function() {
console.log('Those tabs sure did change!');
});
```