简体   繁体   English

有谁知道我在哪里可以找到这个HTML代码?

[英]Does anyone know where I can find this HTML code?

I'd like 3 SELECT boxes that allow people to select the month, day, and year. 我想要3个SELECT框,允许人们选择月,日和年。 I'm sure there are HTML pre-sets like this, right? 我确定有这样的HTML预设,对不对?

January  5  2006

And the user can select the date, which is just option boxes. 用户可以选择日期,这只是选项框。

Why not use a jQuery Date picker ? 为什么不使用jQuery日期选择器

Note: I am searching for the old school date picker which you asked. 注意:我正在搜索您要求的旧学校日期选择器。 Will be back soon. 即将回来。

Edit: This page has a similar html code which you are looking for. 编辑: 此页面具有您要查找的类似html代码。

You should use the html 5 <input type="date" /> then degrade gracefully for browsers that do not support it yet. 您应该使用html 5 <input type="date" />然后对尚不支持它的浏览器进行适当降级。

To degrade gracefully use the following code, taken from diveintohtml5 here . 要优雅地降级,请使用以下代码,该代码取自diveintohtml5这里

<form>
  <input type="date">
</form>
...
<script>
  var i = document.createElement("input");
  i.setAttribute("type", "date");
  if (i.type == "text") {
    // No native date picker support :(
    // Use Dojo/jQueryUI/YUI/Closure to create one,
    // then dynamically replace that <input> element.
  }
</script>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有谁知道在哪里可以找到carousel.us JavaScript 3D Carousel的代码? 开发者网站已关闭 - Does anyone know where I can find the code for the carousel.us JavaScript 3D Carousel? Developer's site is down 确实。com API 受挫。 有人知道我在哪里可以找到独立的提要吗? - Indeed.com API frustrations. Anyone know where I can find an independent feed? 有谁知道我在哪里可以找到有关如何在HTML页面上(在按住鼠标的同时)制作可拉伸框的信息? - Would anyone know where I could find information on how to make stretchable box (while holding down a mouse) on HTML page ? 有谁知道为什么这段代码不能按照我想要的方式工作? - Does anyone know why this code is not working the way I want it to? 有谁知道我如何返回矩阵中的素数? - Does anyone know how I can return the prime numbers in the matrix? 有谁知道我如何将它们存储在 localStorage 中? - Does anyone know how I can store those in localStorage? 有谁知道此代码的含义? - Does anyone know what this code means? 有谁知道如何用css修改警报框,或者我怎样才能创建自己的警报框 - Does anyone know how can i modify alert box with css, or how can i made my own 有没有人知道即使页面已刷新,我如何保留Javascript变量? - Does anyone know how can I keep the Javascript variable even though the page has been refreshed? 有谁知道如何在 smarty 中检查 href 是否等于当前页面链接? - Does anyone know how can i check if href is equal to current page link in smarty?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM