使用jquery验证两个文本框的值 [英] validating two text boxes value using jquery

查看:49
本文介绍了使用jquery验证两个文本框的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的页面上有两个文本框供用户填写开始日期和结束日期,日期和月份可以不同但年份应该相同。所以我必须进行一次验证以检查年份。当用户填写第二个文本框,它在背景中检查并提供文本错误消息,如jquery中的自动搜索。任何帮助将不胜感激。谢谢你

On my page there are two text boxes for the user to fill start date and the end date the days and month can be different but the year should be the same.So i have to put one validation for checking years.when the user fills the second textbox it shold check in background and gives the text error message Something like autosearch in jquery. Any help would be appreciated.Thanking You

推荐答案

你好,



你可以使用onchage活动的文本框来做到这一点。请参阅以下内容,



http ://stackoverflow.com/questions/9563204/textbox-onchange-event-using-jquery [ ^ ]


这篇关于使用jquery验证两个文本框的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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