{"id":9860,"date":"2018-03-13T09:45:47","date_gmt":"2018-03-13T08:45:47","guid":{"rendered":"http:\/\/www.valcon.it\/www\/?p=9860"},"modified":"2023-04-06T11:15:38","modified_gmt":"2023-04-06T09:15:38","slug":"h5-date","status":"publish","type":"post","link":"https:\/\/www.valcon.it\/pp\/h5-date\/","title":{"rendered":"INPUT > date"},"content":{"rendered":"<p>Prova a interagire con il campo di tipo <code>date<\/code>, cambiando anche browser.<\/p>\n<table>\n<tbody>\n<tr>\n<td><input type=\"date\" \/><\/td>\n<td>\n<pre><input type=\"date\" \/><\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><input type=\"date\" value=\"2000-01-01\" \/><\/td>\n<td>\n<pre><input type=\"date\" value=\"2000-01-01\" \/><\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><input type=\"date\" value=\"2000-01-01\" min=\"2000-01-01\" max=\"2000-12-31\" \/><\/td>\n<td>\n<pre><input type=\"date\" value=\"2000-01-01\" min=\"2000-01-01\" max=\"2000-12-31\" \/><\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><input type=\"date\" value=\"2000-01-01\" min=\"2000-01-01\" max=\"2000-12-31\" step=\"7\"\/><\/td>\n<td>\n<pre><input type=\"date\" value=\"2000-01-01\" min=\"2000-01-01\" max=\"2000-12-31\" step=\"7\" \/><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p>Javascript<\/p>\n<table>\n<tr>\n<td align=\"center\"><script> \t\nfunction valore(){x=document.all.data.value;x=x.toUpperCase();document.all.valoreData.value=x}\n<\/script><br \/>\n<INPUT type=\"date\" name=\"data\" onChange=\"valore()\" \/><br \/><INPUT type=\"text\"  name=\"valoreData\" size=\"10\"\/><\/form>\n<\/td>\n<td>\n<pre><INPUT type=\"date\" name=\"data\" onChange=\"valore()\" \/><\/pre>\n<p>Modifica la data e apparir\u00e0 nella casella di testo sottostante<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Prova a interagire con il campo di tipo date, cambiando anche browser. Javascript Modifica la data e apparir\u00e0 nella casella di testo sottostante<\/p>\n","protected":false},"author":1,"featured_media":8368,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,83],"tags":[],"class_list":["post-9860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html","category-javascript"],"_links":{"self":[{"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/posts\/9860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/comments?post=9860"}],"version-history":[{"count":3,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/posts\/9860\/revisions"}],"predecessor-version":[{"id":26859,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/posts\/9860\/revisions\/26859"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/media?parent=9860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/categories?post=9860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.valcon.it\/pp\/wp-json\/wp\/v2\/tags?post=9860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}