{"id":6469,"date":"2014-04-18T06:52:03","date_gmt":"2014-04-18T06:52:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/uncaught-typeerror-cannot-set-property-currentday-of-undefined-collection-of-common-programming-errors-2\/"},"modified":"2014-04-18T06:52:03","modified_gmt":"2014-04-18T06:52:03","slug":"uncaught-typeerror-cannot-set-property-currentday-of-undefined-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/uncaught-typeerror-cannot-set-property-currentday-of-undefined-collection-of-common-programming-errors-2\/","title":{"rendered":"Uncaught TypeError: Cannot set property &#39;currentDay&#39; of undefined-Collection of common programming errors"},"content":{"rendered":"<p>I have a textfield1 and a textfield in a modal, When I click on textfield1 it appears fine, but when I click on the textfield present in the modal the datepicker appears but on selecting the date gives this error <img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/x5aDz.gif\" \/><\/p>\n<p>After much googling and searching about same error I found that it could be because of same IDs of textfield but i ensured that both have different IDs, I dont know what is actually causing the problem Here is my code<\/p>\n<pre><code>      \n$(function() {\n    $(\"body\").delegate(\"#tx1, #tx2\", \"focusin\", function(){\n        $(this).datepicker();\n    });\n});\n\n  \n<\/code><\/pre>\n<p><strong>EDIT<\/strong> These are the libraries<\/p>\n<pre><code>\n\n\n \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have a textfield1 and a textfield in a modal, When I click on textfield1 it appears fine, but when I click on the textfield present in the modal the datepicker appears but on selecting the date gives this error After much googling and searching about same error I found that it could be because [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6469","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6469"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6469\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}