Jquery validate date range fails

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准