Set up the datepicker to respond to a button only and then either hide that button through CSS:
- .ui-datepicker-trigger { display: none; }
- $('#date').datepicker({showOn: 'button'});
Or specify a one-pixel image:
- $('#date').datepicker({showOn: 'button', buttonImageOnly: true, buttonImage: 'img/1px.gif'});
And then trigger the datepicker with the
'show' method:
- $('#date').datepicker('show');