ASP.net and JQuery UI Datepicker

后端 未结 4 772
情歌与酒
情歌与酒 2021-01-15 21:53

Given:


Where the id = datepicker tells the javascript to attach all the datepicker code to

4条回答
  •  长发绾君心
    2021-01-15 22:42

    You need to reference the client ID of the control in the Jquery datepicker initialisation, like such:

    $(function() {
        $("#<%=dateTo.ClientID %>").datepicker();
    });
    

    Seems to work :)

提交回复
热议问题