- From: Ian Hickson <ian@hixie.ch>
- Date: Fri, 25 Jun 2004 16:36:47 +0000 (UTC)
On Thu, 24 Jun 2004, Malcolm Rowe wrote: > > "Should I provide an input-box with an explcit JS popup calendar control, or > should I just use 'type=date'?" I just thought of a way to do this -- check whether: element.type == 'date' The "type" DOM attribute returns the type of the control created (as opposed to requested), so in any DOM2 HTML-compliant UA, this will tell you whether the control created was really a date control or just a text control. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 25 June 2004 09:36:47 UTC