I had the need for a calendar datepicker in a recent project and could not use Coldfusion’s input datefield. I am building the form on the fly and loading form elements from a database using a CFC and a bunch of convoluted logic.
So the cfcalendar.js would not work with my form. I think because the Form Element does not exist in the DOM just yet.
I turned to a couple of Jquery tools and found this one to be the best. Thanks to its author, Keith Wood.
HTML element in the database
<input type=”text” name=”submit_date” id=”submit_date” onClick=”doPickDate(this.id);” />:
var fthisid = '#'+thisid;