JQuery Confirm plugin cannot scroll to field with validation error in iOS 8 Safari

I use the jQuery Validate plugin to validate form input (user information, address, credit card information, etc.).)

The form is located on the mobile version of the site.

When filling out the form and scrolling down to the "buy" button at the bottom of the page, if you have an invalid field (for example, you forgot to enter any content), clicking the "buy" button focuses the invalid input and scroll to that input. All this is done using the jQuery Validation plugin.

This works in most mobile browsers that I tested (Android / Chrome, Windows Phone, mobile Safari iOS 7 and below). However, any Safari mobile browsers on iOS8 + do not scroll. The input is focused and the on-screen keyboard appears, however, scrolling to the input does not occur .

I explored several other topics discussing similar, but slightly different problems, and can't find a solution to the problem!

Any help will be received on this!

+4
source share
1 answer

Name: jQuery Confirm plugin cannot scroll to field with validation error in iOS 8 Safari

Actually, this is not a feature of this plugin for any browser.

jQuery Validate , "" , . , , .

invalidHandler , error .

.

invalidHandler: function(event, validator) {
    // your code for finding invalid element and scrolling
}
+3