It might be a stupid question, but I could not handle my problem. I checked all the questions and answers here, but I did not find a clue. Anyway, I want to use bootstrap datepicker with asp.net textbox. When I use it with an input without the runat = "server" tag, I see that the date picker is displayed, but when I try to use it with a text field with the runat = "server" tag, the date picker is not displayed. Any idea on how to solve this problem?
<asp:TextBox ID="DateTextbox" runat="server" CssClass="m-wrap span12 date form_datetime"></asp:TextBox> <script type="text/javascript"> $(document).ready(function () { var dp = $("#<%=DateTextbox.ClientID%>"); dp.datepicker({ changeMonth: true, changeYear: true, format: "dd.mm.yyyy", language: "tr" }); }); </script>
Thank you for your responses.
source share