You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Blank Date? Created May 5, 2010

This thread is solved

Views: 3513     Replies: 6     Last reply Dec 6, 2011  
You must login first before you can use this feature

listingwarebob

Posts: 5

Registered:
May 5, 2010

Blank Date?

Posted: May 5, 2010

Probably really simple, but how do I have the field start with a blank date? I don't always want the date to be filled in. If I leave the value parameter out, it fills it in with current date.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Blank Date?

Posted: May 6, 2010

Reply to: Blank Date?, from listingwarebob
really simple issues are always the best!

I've now added a possibility to define value manually with the value attribute. For example:


<!-- no initial value -->
<input type="date" name="mydate" />
<input type="date" name="mydate" value="" />

<!-- custom initial value -->
<input type="date" name="mydate" value="Today" />
<input type="date" name="mydate" value="Select Arrival Date" />

A very welcome addition indeed. This feature will be in 1.2.1 to be released within a week or two.

listingwarebob

Posts: 5

Registered:
May 5, 2010

» » Blank Date?

Posted: May 6, 2010

Reply to: » Blank Date?, from tipiirai
Thanks! Just making sure I wasn't missing something!

frankmichel

Posts: 4

Registered:
Sep 8, 2009

» » Blank Date?

Posted: May 19, 2010

Reply to: » Blank Date?, from tipiirai
I noticed that when the input field has "0000-00-00" as the default value the dateinput displays 11/30/1899. Can that be changed so the date input is blank if the initial value is 0000-00-00? That'd be great!!