Onblur事件 [英] onblur event

查看:95
本文介绍了Onblur事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我在.net中遇到以下问题

有3个文本框和1个关闭按钮.文本框是必需的.
和onblur事件分配给每个文本框.直到用户在文本框中输入了一些文本,光标才移动.这适用于所有文本框.
但是当我单击关闭按钮应用程序时,允许关闭.

请在javascript
中回答相同的答案
预先感谢

Hi friends,

i am facing following problem in .net

There are 3 textboxes & one close button.text boxes are mandatory.
and onblur event assign to each text box. cursor do not move untill the user entered some text in textbox. this is for all textboxes.
but when i click on close button application allow to close.

Please reply answer for the same in javascript

thanks in advance

推荐答案

为关闭"按钮设置属性CausesValidation = False.
Set property CausesValidation = False for the Close button.


这篇关于Onblur事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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