Open JQuery Datepicker by clicking on an image w/ no input field

后端 未结 8 930
夕颜
夕颜 2020-11-27 13:00

I want to have the JQuery Datepicker open when the user clicks on an image. There is no input field where the selected date appears afterwards; I\'m just going to save the e

8条回答
  •  渐次进展
    2020-11-27 13:49

    The jQuery documentation says that the datePicker needs to be attached to a SPAN or a DIV when it is not associated with an input box. You could do something like this:

    
    

提交回复
热议问题