Open JQuery Datepicker by clicking on an image w/ no input field
Turns out that a simple hidden input field does the job: <input type=”hidden” id=”dp” /> And then use the buttonImage attribute for your image, like normal: $(“#dp”).datepicker({ buttonImage: ‘../images/icon_star.gif’, buttonImageOnly: true, changeMonth: true, changeYear: true, showOn: ‘both’, }); Initially I tried a text input field and then set a display:none style on it, but that … Read more