Monday, December 30, 2013

FIX: JQuery date format validation for non US dates in Chrome

Include following script in your javascript file and reference it in your page(s) to get rid of the most common error of JQuery date format validation in Chrome which doesn't allow non US dates.

    $(document).ready(function () {
jQuery.validator.methods["date"] = function (value, element) { return true; }

    })

4 comments:

  1. https://plus.google.com/u/0/109632983830278835215/posts/KAjbBT7jcyN?pid=6049951350347392626&oid=109632983830278835215

    I got this error. Why?

    ReplyDelete
  2. Do you have jquery and jquery validator files added in your web page?

    ReplyDelete
  3. thank. it's ok.
    i was add jquery and jquery validator but at the end of page. Now, i move to top and it has worked.

    ReplyDelete

Thanks for visiting my blog.
However, if this helped you in any way, please take a moment to write a comment.

Thanks
Nirman