jQuery: What listener do I use to check for browser auto filling the password input field?

前端 未结 3 1866
滥情空心
滥情空心 2020-12-18 04:27

I have a simple problem that I cannot seem to find a solution to.

Basically on this website here: http://dev.supply.net.nz/vendorapp/ (currently in development) I ha

3条回答
  •  执笔经年
    2020-12-18 05:28

    You'll have to manually fire the event in your .ready()

    var $p = $('#password');
    if($p.val() != '') {
      $('#password').focus();
    }
    

提交回复
热议问题