在自动更改文本更改的文本框之间移动时失去焦点 [英] Losing focus when moving between text boxes that autopostback on textChange

查看:43
本文介绍了在自动更改文本更改的文本框之间移动时失去焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个文本框,当您离开文本框时,它会触发ext change事件,这会产生一些总和,但问题是我也对移动的文本框失去了关注.

I have a few text boxes that when you leave the textbox it fires the ext change event which does some sums but the problem is that I lose focus in the text box I moved too.

推荐答案

您不能使用客户端Javascript吗?

除非另一个文本框已成为焦点,否则onblur事件将触发表单回发.
Can''t you do it with client side Javascript?

The onblur event will trigger the form to post back, unless another textbox has been focused.


也许您需要发布一些代码.我猜想您需要在事件中添加代码以将焦点放回所需位置.
Perhaps yo need to post some code. I''d guess you need to add code in your event to put the focus back where you want it.


这篇关于在自动更改文本更改的文本框之间移动时失去焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆