I've tried the steps here: Step with click functionality in intro.js
to get a function triggered during a step. I haven't had success with getting the function to execute, but the tutorial still runs. Ultimate goal is to have the function trigger a button click. Thanks for any help.
<script type="text/javascript">
function startIntro(){
var intro = introJs();
intro.setOptions({
steps: [
{
intro: "Welcome to the page!",
onchange: function(){
console.log("test");
},
onbeforechange: function() {
console.log("before");
}
},
{
element: '#step1',
intro: "You can start doing something by clicking the New Item button."
},
{
element: '.thefilter',
intro: "You can filter any of the stock items in the table by using the search fields ",
position: 'bottom'
}
]
});
intro.start();
}
</script>
<a href="javascript:void(0);" onclick="startIntro();"><img style="position:fixed;" src="help.png" /></a>