Frage

Am having 3 pages. On click of each page's next the page will be validating the current page for required field check, numeric check and move to next page. My question is on final save on the 3rd page, can we validate all the 3 pages together as we do for each page.?

War es hilfreich?

Lösung 2

Found the solution:

$.validator.setDefaults({ ignore: "" });

Andere Tipps

Yes, a multipage is no different to a single page from that point of view. If you are using a multipage, then all fields are visible from any of the virtual pages.

Update:

I don't know what you are using to do the validation. All I'm saying that that the multipage DOM is visible from all virtual pages, because you are actually just using one page. jQuery Mobile only shows a part of the bigger page as a virtual page, but you are still using one HTML DOM.

This is probably a hack, but if you have a multipage, then you can let your form span across more than one pages. So the page div's can actually go inside the form. Here I posted a example to show that you can access the elements across your multipage doc: https://stackoverflow.com/a/10686795/828757

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top