How do I move focus to next input with jQuery?

后端 未结 15 1849
不思量自难忘°
不思量自难忘° 2020-12-04 09:32

I am using the autocomplete plugin with jQuery and it is working fine. However, in IE, when the user selects an item in the autocomplete, the focus does not then move to the

15条回答
  •  一个人的身影
    2020-12-04 10:15

    The easiest way is to remove it from the tab index all together:

    $('#control').find('input[readonly]').each(function () {
        $(this).attr('tabindex', '-1');
    });
    

    I already use this on a couple of forms.

提交回复
热议问题