I am using fuelux wizard for a multistep order process. I have got the wizrd working fine but if I wrap the whole wizard in a form no matter what I try, it submits the form whenever I click to the next step.
I have tried adding type="button" to the buttons so that they are not treated as submit buttons and to allow me to programmatically submit the form .on('finished' but then the wizard doesn't progress through the steps.
I have tried:
$('#fuelux-wizard').wizard().on('change' , function(e, info){
e.preventDefault();
}
But after logging the e in question it is 'change' so I think it is to do with the wizard not the form.
My jquery/javascript knowledge and understanding of events etc is not good enough to figure this out, I'm stuck.
The alternative seems to be to have individual forms within each step and then combine them in some way but this seems ridiculously complicated when wrapping the wizard in a single form would do the trick if I could control the submit, which seems like it should be possible.
Can anyone give me any pointers?
Thanks.