mohsinjaved
mohsinjaved

Reputation: 13

jQuery mobile not working with Jquery Validation Engine

I am using Jquery validation Engine with Jquery Mobile, it works fine when refresh the page but didn't work when coming from index page to abc page.

I have tried below code but no progress also I changed pageinit to pagebeforeshow but still no progress.

$(document).on('pageinit', function(){

});

My console says:

TypeError: options is undefined
[Break On This Error]   

options.eventTrigger = "submit";

The above error comes in Jquery validation engine file, but once refresh it works like charm.

Any help will be greatly appricaited.Thanks.

Upvotes: 1

Views: 502

Answers (1)

Asif
Asif

Reputation: 647

Please use

$(document).on('mobileinit', function(){

});

Upvotes: 2

Related Questions