[英]Jquery Focus-Out issue in IE on two textbox
I have Two text-boxes and both of then have Focus-Out event 我有两个文本框,然后两个都有Focus-Out事件
$('.ClassofTxtbx1').focusout(function(){ });
$('.ClassofTxtbx2').focusout(function(){ });
when I enter something in textbox1 and hit tab, focus goes to 2nd textbox and both textbox FOCUSOUT event getting called.This is wht happens in IE-9 but works in CHROME. 当我在textbox1中输入内容并点击选项卡时,焦点转到第二个文本框,两个文本框的FOCUSOUT事件都被调用。这在IE-9中发生,但在CHROME中有效。
Try to use blur()
instead: 尝试使用blur()
代替:
$('.ClassofTxtbx1').blur(function(){ });
$('.ClassofTxtbx2').blur(function(){ });
focusout
may have issues, if both of your text boxes belong to the same parent. 如果您的两个文本框都属于同一父级,则focusout
可能会出现问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.