模糊和焦点IE11模态对话框

时间:2017-11-25 11:10:12

标签: jquery internet-explorer modal-dialog

我在使用IE11和焦点/模糊事件时遇到了困难。它们不会在模态对话框中触发,而使用FF,Chrome,Edge则可以。我运行的代码如下:

$("#wTextBoxAutoComplete_Risicoklasse1").blur(function () {
            if ($("#wTextBoxAutoComplete_Risicoklasse1").val() === '4') {
                // do something
            }
            else {
                // do something else            } 

        });

$("#wTextBoxAutoComplete_Risicoklasse1").focusout(function () {
            if ($("#wTextBoxAutoComplete_Risicoklasse1").val() === '4') {
               // do something
            }
            else {
               // do something else
            } 

        });

为什么它在IE11中不起作用?我错过了什么吗?

提前致谢

这是我从浏览器中获得的:

<input name="wTextBoxAutoComplete_Risicoklasse1:::shadow" class="ms-long ui-autocomplete-input ms-inputBox" id="wTextBoxAutoComplete_Risicoklasse1:::shadow" type="autocomplete" autocomplete="off" autocorrect="off" data-select="function(e, ui) { LookupAutoCompleteSelected(ui, 'Risicoklasse1', false, false);}" data-source="LookupField=Title&amp;RowLimit=100&amp;BPASite=http%3a%2f%2fkwaliteit.domain.local" autocapitalize="off" disableautocomplete="" data-scrollheight="300" data-response-value="0" data-view="0c480c15-b54d-47d2-9abb-5601deb5fcb8" data-list="19d1beb4-5f4a-4758-b3b6-4c59e781ed73" data-colback="Title" bpatitle="Risicoklasse Arbo" checkduplicate="false" multivalue="false" data-source-js="{BPACascading: function () { return getBPACascading(':')}, BPAReverseCascading: function () { return getBPAReverseCascading(':')}}" cascading-params=":">

<input name="wTextBoxAutoComplete_Risicoklasse1" id="wTextBoxAutoComplete_Risicoklasse1" type="hidden" value="4">

0 个答案:

没有答案