onblur组合框警报 [英] onblur combo box alert

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

问题描述

Helo我将以形式

的形式完成出生日期的验证,其中包括三个组合框dd / mm / yyyy。我的目标是使用onblur函数,通过它我可以调用一个函数。并且当该字段为空或者选择起始索引元素即选择月份或选择日期或选择年份时,该功能的内容应该显示警告消息。因此,当我们通过选择上述三个中的任何一个来按下选项卡时,我会得到一个警告框。

希望你能帮助我。

Helo i am going through the validations of date of birth in form
which consists of three combo boxes dd/mm/yyyy. My aim is to use onblur function through which i hav to call a function. And the content of that function should display an alert message when ever the field is empty or when the starting index element i.e. select month or select date or select year is selected. So when we press the tab by selecting any of the three above i hav to get an alert box.
Hope u will help me.

推荐答案

更改主题标题。



Helo我将以形式

的形式通过出生日期的验证,其中包括三个组合框dd / mm / yyyy。我的目标是使用onblur函数,通过它我可以调用一个函数。并且当该字段为空或者选择起始索引元素即选择月份或选择日期或选择年份时,该功能的内容应该显示警告消息。因此,当我们通过选择上述三个中的任何一个来按下选项卡时,我会得到一个警告框。

希望你能帮助我。
Helo i am going through the validations of date of birth in form
which consists of three combo boxes dd/mm/yyyy. My aim is to use onblur function through which i hav to call a function. And the content of that function should display an alert message when ever the field is empty or when the starting index element i.e. select month or select date or select year is selected. So when we press the tab by selecting any of the three above i hav to get an alert box.
Hope u will help me.



欢迎来到The Scripts。


发布到目前为止的代码。所以你想要这个行为,无论组合框的价值如何?为此,只需将组合对象传递给函数并使用:

Welcome to The Scripts.

Post the code you have so far. So you want this behaviour whatever the value of the combo box? For that just pass the combo object to the function and use:

展开 | 选择 | Wrap | 行号



Helo我将以形式

的形式通过出生日期的验证,其中包括三个组合框dd / mm / yyyy。我的目标是使用onblur函数,通过它我可以调用一个函数。并且当该字段为空或者选择起始索引元素即选择月份或选择日期或选择年份时,该功能的内容应该显示警告消息。因此,当我们通过选择上述三个中的任何一个来按下选项卡时,我会得到一个警告框。

希望你能帮助我。
Helo i am going through the validations of date of birth in form
which consists of three combo boxes dd/mm/yyyy. My aim is to use onblur function through which i hav to call a function. And the content of that function should display an alert message when ever the field is empty or when the starting index element i.e. select month or select date or select year is selected. So when we press the tab by selecting any of the three above i hav to get an alert box.
Hope u will help me.



如果我理解正确,我认为这可能会做你想要的:链接

比传统警报更不突兀。

If I understand correctly, I think this may do what you want: Link
Rather less obtrusive than a conventional alert.


这篇关于onblur组合框警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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