asp.net中的javascript验证 [英] javascript validation in asp.net

查看:50
本文介绍了asp.net中的javascript验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在将文本框填充到下一个文件框之前停止光标移动。

Hi,
How to stop the cursor move before filling the textbox to next.

推荐答案

如果你的意思是鼠标光标,没有什么可以防止移动它。

如果你的意思是文本输入插入符号,你不想阻止它的动作,因为它用于填充文本输入控件。

所以这个问题,如同制定,没有任何意义。



如果你的意思是捕捉键盘焦点的移动,你可以通过处理一些与焦点相关的事情来做到这一点。事件:模糊,变化,聚焦,聚焦,聚焦

事件参考| MDN [ ^ ]。



-SA
If you mean mouse cursor, nothing can prevent moving it.
If you mean text input caret, you don't want to prevent its motion, because it's used to fill in the text input control.
So, the question, as formulated, makes no sense.

If you mean to capture shifting of the keyboard focus, you can do it by handling some of the focus-related events: blur, change, focus, focusin, focusout:
Event reference | MDN[^].

—SA


这篇关于asp.net中的javascript验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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