views:

80

answers:

3

I'd like 3 SELECT boxes that allow people to select the month, day, and year. I'm sure there are HTML pre-sets like this, right?

January  5  2006

And the user can select the date, which is just option boxes.

+1  A: 

Take a look at this:

http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

It is simple to implement and user-friendly :)

M28
+1  A: 

Why not use a jQuery Date picker?

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.

Shoban
A: 

You should use the html 5 <input type="date" /> then degrade gracefully for browsers that do not support it yet.

To degrade gracefully use the following code, taken from diveintohtml5 here.

<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>
Erik Vold