JQuery Mobile disables autocomplete Mobile Safari

this is especially true for MOBILE SAFARI. Do not discuss other browsers.

Ok, I have a form that works with Safari AutoFill on Mac, it also works in Mobile Safari if I remove jQuery Mobile. however, as soon as I have jQuery Mobile running, the AutoFill button / function in Safari mobile stops responding. the AutoFill button is grayed out.

Can anyone explain this? thank

** UPDATE / ~ ANSWER **

jQuery Mobile [v1.0a4.1] is just up and sets:

this.setAttribute("autocomplete", "off");

about

var textInputs = allControls.filter( "input[type=text]" );

... that makes all the difference.

see https://github.com/jquery/jquery-mobile/issues/785

+3
source share
1 answer

, , 1.1, .

, , reset , , , ...

PER PAGE:

$(document).delegate('yourpage','pageinit',function(){
    $(‘input[type=text]‘).attr(‘autocomplete’,'on’);
});

GLOBAL:

 $(document).bind('mobileinit',function(){
    $(‘input[type=text]‘).attr(‘autocomplete’,'on’);
 })

autocomplete on fix http://ranservices.com/2011/11/jquery-mobile-breaks-autofill-on-iphone/

0

All Articles