Can JQuery UI datepicker be bound to an icon? -


i have html looks

<select id="day"><option>day</option></select> <select id="month"><option>month</option></select> <select id="year"><option>year</option></select> <img src="img/some-icon.png" id="datepicker" /> 

i'm unable bind $("#datepicker").datepicker() icon above. it's wouldn't display calendar.

jquery ui examples bind datepicker input field. wanted know there alternative way achieve this?

edit: i'm using hidden field many suggested below. wanted know if there way me avoid using hidden field

you missed open " of id, should be:

<img src="img/some-icon.png" id="datepicker" /> --------------------------------^here-----------  

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -