attaching a date picker to an <img> tag

thanks for the answer to my previous question ( … 227&a=6026)

when i change my image tag to an img tag the date picker does not behave in the same way. When i click the image it no longer displays the calendar. Do i have to add an onclick method to display the calendar?

The current version can be linked automatically only to input elements, it can’t work the same for image tag, you need to add onclick event handler with

Please check attached sample.

2394729348.ZIP (22.6 KB)