// 输入框失去焦点时,样式设置
$('input').blur(function() {
$(this).removeClass('focus');
if ($(this).hasClass('have_tooltip')) {
$(this).parent().parent().removeClass('field_focus').addClass('field_normal');
}
});<div class="field_normal">
<span> <input id="checkCode" maxlength=10 size=10 class="have_tooltip"/>
<img id="imgCheckCode" src="getCheckCode.jsp" /> </span> 验证码:
<div>请输入左侧验证码<br/><a href="javascript:changeImgCheckCode($('#imgCheckCode'), 'getCheckCode.jsp');" title="更换一张验证码图片" class="img">看不清楚,换一张</a>
</div>
</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货