datepicker on own img button
Hi everyone
I'm using the jQuery UI datepicker and it's absolutely brilliant.
But is there a way to attach it to my own button?
Here's my datepicker code at the moment
-
// UI DATEPICKER
$("#due_date").datepicker({buttonImage: '/img/calendar.gif', buttonImageOnly: true, constrainInput: true, dateFormat: 'dd/mm/y', duration: 'fast', firstDay: 1, maxDate: '+5Y', minDate: '-0D', showButtonPanel: true, showOn: 'button'});
And it generates a button with calendar.gif next to the input, which is almost fine.
But I'd like to set up my own <img tag to go next to the input to trigger the datepicker. I want my own button so I can set my own style options on it (cursor and vertical align).
Any ideas?
Cheers, B