Skip to main content
Inspiring
October 24, 2013
Question

Datepicker - how to add change year function

  • October 24, 2013
  • 1 reply
  • 688 views

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 has been closed for replies.

1 reply

Inspiring
October 24, 2013

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.

BACFLAuthor
Inspiring
October 25, 2013

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

Inspiring
October 25, 2013

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