I am having a bit of a problem with my jQuery steps. I would like to a add a custom button when I get to the last step. I have three steps. I am failing to get the current index.
$(document).ready(function () {
$wizard = $("#wizard");
$wizard.steps({
onStepChanged: function (event, currentIndex, priorIndex) {
var currentStep = $("#wizard").steps("getStep", currentIndex);
if (currentStep == 2) {
var $input = $('<input type="submit" value="test" />');
$input.appendTo($('ul[aria-label=Pagination]'));
}
}
});
});