如何关注jquery中模式弹出窗口上的特定框
我使用的是一个模式弹出窗口,其中我使用jquerycustombox使用以下代码。当弹出窗口打开时,我想把注意力集中在一个特定的框上 我正在使用jquery自定义框v.1.1.3如何关注jquery中模式弹出窗口上的特定框,jquery,popup,modal-dialog,focus,Jquery,Popup,Modal Dialog,Focus,我使用的是一个模式弹出窗口,其中我使用jquerycustombox使用以下代码。当弹出窗口打开时,我想把注意力集中在一个特定的框上 我正在使用jquery自定义框v.1.1.3 $('.fadein').on('click', function ( e ){ $.fn.custombox(this), { effect: 'fadein' }); e.preventDefault(); $('.auto').autoNumeric('
$('.fadein').on('click', function ( e ){
$.fn.custombox(this), { effect: 'fadein'
});
e.preventDefault(); $('.auto').autoNumeric('init');
});
我想知道是否有人可以帮助解决此问题尝试使用
打开回调
并在之后立即删除)
类似
$('.fadein').on('click', function ( e ){
$.fn.custombox(this, { // remove the extra closing bracket after this.
effect: 'fadein',
open: function () {
$('.auto').autoNumeric('init'); // I think this you want after opening box
// or your code to focus element
}
});
e.preventDefault();
});