I have an HTML page with a web form. Among other things, it includes the following form fields:
- Title - textbox
- SourceName - textbox
- Url - textbox
- FullText - textbox
- PublicationDate - textbox using jQuery datepicker UI
- StartDate - textbox using jQuery datepicker UI
- EndDate - textbox using jQuery datepicker UI
I am trying to implement the jQuery validator multiple field [sample][1]:
jQuery(document).ready(function() {
// a custom method for validating the date range
jQuery.validator.addMethod("dateRange", function() {
var date1 = new Date(jQuery("#StartDate").val());
var date2 = new Date(jQuery("#EndDate").val());
return (date1
以上就是Jquery validate date range fails的详细内容,更多请关注web前端其它相关文章!