简体   繁体   English

文本框的客户端验证

[英]Clientside validation of a textbox

I have an asp.net control textbox, clicking on which a jquery timepicker appears and user can select any time.But I want to validate the selected time so that it is one hour greater than the current time in the client side. 我有一个asp.net控件文本框,单击它会出现一个jQuery时间选择器,用户可以选择任何时间。但是我想验证所选时间,使其比客户端当前时间大一小时。 I mean when textbox value will be changed it should be validated. 我的意思是当文本框值将被更改时,它应该被验证。 Can anyone help me how to do this? 谁能帮我怎么做?

The input that the client's selection goes into will have an id. 客户选择项输入的输入将具有一个ID。 Do

$('#that_id').change(function() {
Validation Code/////
})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM