Skip to main content
Inspiring
Oct 24, 2013 1:58 PM UTC
Question

Datepicker - how to add change year function

I'm using datepicker in a <cfinput> but you can only go forward or backward by one month at a time.  Is there a way to add functionality so that you can change the year?

Thanks!

BCo.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Oct 24, 2013 9:23 PM UTC

Client-side functionality is, IMO, an area of "expertise" that CF needs to get away from and leave to better solutions out there.  If I were you, I'd look into using jQuery in tandem with its datepicker object.  It is a lot more programmable than the restrictive tech employed by CF as a crutch.

Don't get me wrong; I love CF, but CF needs to stop trying to be what it isn't.  Client-side belongs to Javascript frameworks like jQuery.

Translate
BACFLAuthor
Inspiring
Oct 25, 2013 12:40 PM UTC

Thanks for the info.  Guess it's time to learn some jquery.

Translate
Inspiring
Oct 25, 2013 2:05 PM UTC

For a head's up, you'll need the jQuery UI Datepicker: http://jqueryui.com/datepicker/

Translate