如何使用jquery验证日期文本框? [英] how to validate date textbox using jquery?
问题描述
这里iam验证名称,性别,城市,Dateofjoining的texbox,但是这里我收到错误
字符串未被识别为有效的DateTime。
```
$(凭证).ready(function(){
$(#btncreate)。click(function(){
if(Name ==|| ddlGender ==|| City ==|| Dateofjoining == ){
alert(所有字段都是强制性的);
返回false;
}
} );
});
```
如何验证日期文本框值。
(document).ready(function(){
(#btncreate)。click(function(function) ){
if(Name ==|| ddlGender ==|| City ==|| Dateofjoining ==){
alert( 所有字段都是强制性的);
返回false;
}
} );
});
```
如何验证日期文本框值。
使用 Datepicker / [ ^ ]控制,以确保日期有效。
Here iam validating texboxes of Name,Gender,City,Dateofjoining but here iam getting a error as
String was not recognized as a valid DateTime.
```
$(document).ready(function () {
$("#btncreate").click(function () {
if ( Name == "" || ddlGender == "" || City == "" || Dateofjoining == "") {
alert("All Fields Are Mandatory");
return false;
}
});
});
```
How to validate date textbox value.
(document).ready(function () {
("#btncreate").click(function () {
if ( Name == "" || ddlGender == "" || City == "" || Dateofjoining == "") {
alert("All Fields Are Mandatory");
return false;
}
});
});
```
How to validate date textbox value.
Use a Datepicker/[^] control, to ensure the date will be valid.
这篇关于如何使用jquery验证日期文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!