jQuery.focus()メソッドを使用して、asp.net のリモート スクリプトを介して要素に焦点を当てています。再帰が多すぎるというエラーが表示されます。
私は何を間違っていますか?
asp.net コード:
Response.Write("<script>$('#ledger_name').focus();</script>");
html
<input type="text" id="account_name" name="account_name" />
オートコンプリートのjs
$("#account_name").autocomplete({
    source: account_master,
    minLength: 1,
    minChars: 0,
    width: 350,
    mustMatch: 0,
    selectFirst: true,
    matchContains: false,
    autoFocus: true,
    autoFill: false,
    change: function (event, ui) {
        if (!ui.item) {
            $(this).val('');
        }
    },
    select: function (event, ui) {
        $("#account_name").val(ui.item.label);
        $("#account_name_code").val(ui.item.id);
        $("#account_name_parent").val(ui.item.parent);
        //$('#ledger_name').focus();
        return true;
    }
});
jquery UI
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
$('#ledger_name').focus();オートコンプリートでの呼び出し時に jquery-ui.min.js ファイルにエラーが発生しています