you want to use your input button in place of link , then you can use id of the input button and use .click handler. Use HTML instance
of this
and Script
$("#btnNext").click(function () { // Event of link-click "necxt step"
if (current_step == steps.length - 2) { // checking - will it the next step is last
$(this).hide(); // i hide the link "next step"
$("form input[type=submit]").show(); // show thge button "OK"
}
$("a.back").show(); // show the link "Back"
current_step++; // increase the counter of the current slide
changeStep(current_step); // change a step
});
do same as it is for another button