We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7f830 commit 01e59d7Copy full SHA for 01e59d7
README.md
@@ -198,6 +198,7 @@ introJs().onexit(function() {
198
###introJs.onchange(providedCallback)
199
200
Set callback to change of each step of introduction. Given callback function will be called after completing each step.
201
+The callback function receives the element of the new step as an argument.
202
203
**Available since:** v0.3.0
204
@@ -209,8 +210,8 @@ Set callback to change of each step of introduction. Given callback function wil
209
210
211
**Example:**
212
```javascript
-introJs().onchange(function() {
213
- alert("new step");
+introJs().onchange(function(targetElement) {
214
+ alert("new step: " + targetElement);
215
});
216
````
217
0 commit comments