[thelist] Some more simple JavaScript

Simon Perry thelist at si-designs.co.uk
Fri Dec 3 12:28:17 CST 2004


Christian Heilmann wrote:

> Chris Kavanagh wrote:
>
>>
>>
>> Is this doable?  Sorry I'm such a Java noob.  It's all kinda alien to 
>> me, but I am trying.
>
>
> Yes, but there is a much easier way: getMonth() returns the current  
> month starting from 0 and ranging up  to 11. Every select has an  
> array of its options and the selectedIndex value defines which one is 
> selected. Put both together and you are done:
>
> http://www.zen32721.zen.co.uk/monthselect.html
>
Mine works too but Christian's method is so much simpler... I like it :-)

Simon


More information about the thelist mailing list