This is a wild assumption because no sample code was provided, I suppose you used:
$(document).ready(function() { });
to initialize the validation plugin, which is common practice for jquery. Unfortunately, the finished document cannot be used with jQuery Mobile.
Also do not use:
$(function () { });
With jQuery Mobile.
The Validator plugin must be initialized in the show show event, for example:
$('#index').live('pageshow',function(e,data){ $.validator.addMethod("valueNotEquals", function(value, element, arg){ return arg != value; }, ""); $("#form1").validate({ rules: { select_list : {valueNotEquals: "default"}, }, messages: { select_list : { valueNotEquals: "You must select a value" } }, submitHandler: function(form) { alert($('#form1').valid()); form.submit(); } }); });
And here is a working example: http://jsfiddle.net/Gajotres/AZPhK/ . No matter how much time you close and return to the first page, every time the page is displayed, the validator will be initialized.
EDIT:
IF you use HTML format with several html, put this code only in the necessary page or, better, create a new js file, put this code (all your custom js code) into it and share it with all html pages.
source share