xoxco/jQuery-Multipage-Form — Issue #3: nextpage function - curpage variable
Author: mcamacho
Created: 2011-12-22 20:44:26+00:00
State: open

In the nextpage function, I found a line of code that is causing an issue when submiting the form from the last page.
The curpage variable (that is currently a int. var.) receives the object array settings.pages.
After this the navigation stops working.

if (curpage > settings.pages.length) {
// submit!
$(this).submit();
curpage = settings.pages;
return false;
}