How to make the calendar popup on click of a calendar icon ?

前端 未结 4 884
借酒劲吻你
借酒劲吻你 2021-01-28 19:08

I am working on the website in which I want to popup the calendar on hitting calendar icon.

The HTML code which I have used in order to place Start Date

4条回答
  •  走了就别回头了
    2021-01-28 19:59

    It looks like you are using jQuery's datepicker?

    You are trying to execute this line

    $( "#datepicker" ).datepicker();
    

    but you don't have any element with an id datepicker.

    Try adding the id datepicker to your input if you want the entire input to change into datepicker on click. Added id datepicker to your input with the class start_date.

提交回复
热议问题