I am using the following plugin: http://codecanyon.net/item/dynamic-step-process-panels/118950 and I am trying to modify its behavior. Currently when the last tab is reached the next button becomes inactive, its class is changed from 'button activeButton' to 'button inactiveButton'. I need to change the next buttons class to one which I create myself, which will act as a submit button.
I have unsuccessfully tried to modify the div class in the following way:
<script type="text/javascript">
$(document).ready(function() {
$("#processPanel").processPanel({
kind: "freeChoice",
icons: true,
nextPrevButtons: true,
style: "green-blue",
afterOpen: function(event, step, content, stepNumber){
if(stepNumber==3)
{
$(".button inactiveButton").attr('class', 'button activeButton-green-blue');
}
}
});
Any advice would be greatly appreciated...